<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>pyprocessing.primitives</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pyprocessing-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="pyprocessing-module.html">Package&nbsp;pyprocessing</a> ::
        Module&nbsp;primitives
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="pyprocessing.primitives-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="pyprocessing.primitives-module.html">Module pyprocessing.primitives</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-comment">#************************</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#  PRIMITIVE DRAWING</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#************************</tt> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">ctypes</tt> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">pyglet</tt><tt class="py-op">.</tt><tt class="py-name">gl</tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Module pyprocessing.globs=pyprocessing.globs-module.html"><a title="pyprocessing.globs" class="py-name" href="#" onclick="return doclink('link-0', 'globs', 'link-0');">globs</a></tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-1" class="py-name" targets="Module pyprocessing.constants=pyprocessing.constants-module.html"><a title="pyprocessing.constants" class="py-name" href="#" onclick="return doclink('link-1', 'constants', 'link-1');">constants</a></tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-2" class="py-name" targets="Module pyprocessing.attribs=pyprocessing.attribs-module.html"><a title="pyprocessing.attribs" class="py-name" href="#" onclick="return doclink('link-2', 'attribs', 'link-2');">attribs</a></tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-3" class="py-name" targets="Module pyprocessing.colors=pyprocessing.colors-module.html"><a title="pyprocessing.colors" class="py-name" href="#" onclick="return doclink('link-3', 'colors', 'link-3');">colors</a></tt> <tt class="py-keyword">import</tt> <tt id="link-4" class="py-name" targets="Function pyprocessing.colors._getColor()=pyprocessing.colors-module.html#_getColor"><a title="pyprocessing.colors._getColor" class="py-name" href="#" onclick="return doclink('link-4', '_getColor', 'link-4');">_getColor</a></tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-5" class="py-name" targets="Module pyprocessing.config=pyprocessing.config-module.html,Variable pyprocessing.globs.canvas.config=pyprocessing.globs.canvas-class.html#config"><a title="pyprocessing.config
pyprocessing.globs.canvas.config" class="py-name" href="#" onclick="return doclink('link-5', 'config', 'link-5');">config</a></tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-6" class="py-name" targets="Module pyprocessing.pimage=pyprocessing.pimage-module.html"><a title="pyprocessing.pimage" class="py-name" href="#" onclick="return doclink('link-6', 'pimage', 'link-6');">pimage</a></tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line"><tt class="py-name">__all__</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-string">'_smoothFixHackBegin'</tt><tt class="py-op">,</tt> <tt class="py-string">'_smoothFixHackEnd'</tt><tt class="py-op">,</tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line">         <tt class="py-string">'background'</tt><tt class="py-op">,</tt> <tt class="py-string">'ellipse'</tt><tt class="py-op">,</tt> <tt class="py-string">'arc'</tt><tt class="py-op">,</tt> <tt class="py-string">'rect'</tt><tt class="py-op">,</tt> <tt class="py-string">'quad'</tt><tt class="py-op">,</tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line">         <tt class="py-string">'triangle'</tt><tt class="py-op">,</tt> <tt class="py-string">'point'</tt><tt class="py-op">,</tt> <tt class="py-string">'line'</tt><tt class="py-op">,</tt> <tt class="py-string">'box'</tt><tt class="py-op">,</tt> <tt class="py-string">'sphere'</tt><tt class="py-op">]</tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line">          </tt>
<a name="_smoothFixHackBegin"></a><div id="_smoothFixHackBegin-def"><a name="L18"></a><tt class="py-lineno"> 18</tt> <a class="py-toggle" href="#" id="_smoothFixHackBegin-toggle" onclick="return toggle('_smoothFixHackBegin');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.primitives-module.html#_smoothFixHackBegin">_smoothFixHackBegin</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_smoothFixHackBegin-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="_smoothFixHackBegin-expanded"><a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line">    <tt class="py-docstring">"""Try to cope with OpenGL's faulty antialiasing of polygons by turning</tt> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line"><tt class="py-docstring">    off smooth rendering temporarily."""</tt> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-7" class="py-name"><a title="pyprocessing.config
pyprocessing.globs.canvas.config" class="py-name" href="#" onclick="return doclink('link-7', 'config', 'link-5');">config</a></tt><tt class="py-op">.</tt><tt id="link-8" class="py-name" targets="Variable pyprocessing.config.smoothFixHack=pyprocessing.config-module.html#smoothFixHack"><a title="pyprocessing.config.smoothFixHack" class="py-name" href="#" onclick="return doclink('link-8', 'smoothFixHack', 'link-8');">smoothFixHack</a></tt><tt class="py-op">:</tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line">        <tt id="link-9" class="py-name"><a title="pyprocessing.config
pyprocessing.globs.canvas.config" class="py-name" href="#" onclick="return doclink('link-9', 'config', 'link-5');">config</a></tt><tt class="py-op">.</tt><tt id="link-10" class="py-name" targets="Variable pyprocessing.config.smoothTurnedOn=pyprocessing.config-module.html#smoothTurnedOn"><a title="pyprocessing.config.smoothTurnedOn" class="py-name" href="#" onclick="return doclink('link-10', 'smoothTurnedOn', 'link-10');">smoothTurnedOn</a></tt> <tt class="py-op">=</tt> <tt id="link-11" class="py-name" targets="Class pyprocessing.globs.attrib=pyprocessing.globs.attrib-class.html"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-11', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-12" class="py-name" targets="Function pyprocessing.attribs.smooth()=pyprocessing.attribs-module.html#smooth,Variable pyprocessing.globs.attrib.smooth=pyprocessing.globs.attrib-class.html#smooth"><a title="pyprocessing.attribs.smooth
pyprocessing.globs.attrib.smooth" class="py-name" href="#" onclick="return doclink('link-12', 'smooth', 'link-12');">smooth</a></tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-13" class="py-name"><a title="pyprocessing.config
pyprocessing.globs.canvas.config" class="py-name" href="#" onclick="return doclink('link-13', 'config', 'link-5');">config</a></tt><tt class="py-op">.</tt><tt id="link-14" class="py-name"><a title="pyprocessing.config.smoothTurnedOn" class="py-name" href="#" onclick="return doclink('link-14', 'smoothTurnedOn', 'link-10');">smoothTurnedOn</a></tt><tt class="py-op">:</tt> <tt id="link-15" class="py-name" targets="Function pyprocessing.attribs.noSmooth()=pyprocessing.attribs-module.html#noSmooth"><a title="pyprocessing.attribs.noSmooth" class="py-name" href="#" onclick="return doclink('link-15', 'noSmooth', 'link-15');">noSmooth</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line"> </tt>
<a name="_smoothFixHackEnd"></a><div id="_smoothFixHackEnd-def"><a name="L25"></a><tt class="py-lineno"> 25</tt> <a class="py-toggle" href="#" id="_smoothFixHackEnd-toggle" onclick="return toggle('_smoothFixHackEnd');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.primitives-module.html#_smoothFixHackEnd">_smoothFixHackEnd</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_smoothFixHackEnd-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="_smoothFixHackEnd-expanded"><a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line">    <tt class="py-docstring">"""Restore the smooth setting if it was temporarily turned off."""</tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-16" class="py-name"><a title="pyprocessing.config
pyprocessing.globs.canvas.config" class="py-name" href="#" onclick="return doclink('link-16', 'config', 'link-5');">config</a></tt><tt class="py-op">.</tt><tt id="link-17" class="py-name"><a title="pyprocessing.config.smoothFixHack" class="py-name" href="#" onclick="return doclink('link-17', 'smoothFixHack', 'link-8');">smoothFixHack</a></tt> <tt class="py-keyword">and</tt> <tt id="link-18" class="py-name"><a title="pyprocessing.config
pyprocessing.globs.canvas.config" class="py-name" href="#" onclick="return doclink('link-18', 'config', 'link-5');">config</a></tt><tt class="py-op">.</tt><tt id="link-19" class="py-name"><a title="pyprocessing.config.smoothTurnedOn" class="py-name" href="#" onclick="return doclink('link-19', 'smoothTurnedOn', 'link-10');">smoothTurnedOn</a></tt><tt class="py-op">:</tt> <tt id="link-20" class="py-name"><a title="pyprocessing.attribs.smooth
pyprocessing.globs.attrib.smooth" class="py-name" href="#" onclick="return doclink('link-20', 'smooth', 'link-12');">smooth</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line">     </tt>
<a name="background"></a><div id="background-def"><a name="L29"></a><tt class="py-lineno"> 29</tt> <a class="py-toggle" href="#" id="background-toggle" onclick="return toggle('background');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.primitives-module.html#background">background</a><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-param">color</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="background-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="background-expanded"><a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line">    <tt class="py-docstring">"""Clears the screen with color. </tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line"><tt class="py-docstring">    Color may be an (r,g,b) tuple or a single gray value. If depth testing is</tt> </tt>
<a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line"><tt class="py-docstring">    turned on, also clears the depth buffer."""</tt> </tt>
<a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-21" class="py-name" targets="Function pyprocessing.colors.color()=pyprocessing.colors-module.html#color"><a title="pyprocessing.colors.color" class="py-name" href="#" onclick="return doclink('link-21', 'color', 'link-21');">color</a></tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt> <tt class="py-keyword">and</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt id="link-22" class="py-name"><a title="pyprocessing.colors.color" class="py-name" href="#" onclick="return doclink('link-22', 'color', 'link-21');">color</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt id="link-23" class="py-name" targets="Class pyprocessing.pimage.PImage=pyprocessing.pimage.PImage-class.html"><a title="pyprocessing.pimage.PImage" class="py-name" href="#" onclick="return doclink('link-23', 'PImage', 'link-23');">PImage</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line">        <tt id="link-24" class="py-name" targets="Function pyprocessing.pimage.image()=pyprocessing.pimage-module.html#image"><a title="pyprocessing.pimage.image" class="py-name" href="#" onclick="return doclink('link-24', 'image', 'link-24');">image</a></tt><tt class="py-op">(</tt><tt id="link-25" class="py-name"><a title="pyprocessing.colors.color" class="py-name" href="#" onclick="return doclink('link-25', 'color', 'link-21');">color</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line">    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line">        <tt id="link-26" class="py-name"><a title="pyprocessing.colors.color" class="py-name" href="#" onclick="return doclink('link-26', 'color', 'link-21');">color</a></tt> <tt class="py-op">=</tt> <tt id="link-27" class="py-name"><a title="pyprocessing.colors._getColor" class="py-name" href="#" onclick="return doclink('link-27', '_getColor', 'link-4');">_getColor</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt id="link-28" class="py-name"><a title="pyprocessing.colors.color" class="py-name" href="#" onclick="return doclink('link-28', 'color', 'link-21');">color</a></tt><tt class="py-op">)</tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line">        <tt id="link-29" class="py-name" targets="Variable pyprocessing.lights'.glClearColor=pyprocessing.lights%27-module.html#glClearColor"><a title="pyprocessing.lights'.glClearColor" class="py-name" href="#" onclick="return doclink('link-29', 'glClearColor', 'link-29');">glClearColor</a></tt> <tt class="py-op">(</tt><tt class="py-op">*</tt><tt id="link-30" class="py-name"><a title="pyprocessing.colors.color" class="py-name" href="#" onclick="return doclink('link-30', 'color', 'link-21');">color</a></tt><tt class="py-op">)</tt> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line">        <tt id="link-31" class="py-name" targets="Variable pyprocessing.lights'.glClear=pyprocessing.lights%27-module.html#glClear"><a title="pyprocessing.lights'.glClear" class="py-name" href="#" onclick="return doclink('link-31', 'glClear', 'link-31');">glClear</a></tt><tt class="py-op">(</tt><tt id="link-32" class="py-name" targets="Variable pyprocessing.lights'.GL_COLOR_BUFFER_BIT=pyprocessing.lights%27-module.html#GL_COLOR_BUFFER_BIT"><a title="pyprocessing.lights'.GL_COLOR_BUFFER_BIT" class="py-name" href="#" onclick="return doclink('link-32', 'GL_COLOR_BUFFER_BIT', 'link-32');">GL_COLOR_BUFFER_BIT</a></tt> <tt class="py-op">|</tt> <tt id="link-33" class="py-name" targets="Variable pyprocessing.lights'.GL_DEPTH_BUFFER_BIT=pyprocessing.lights%27-module.html#GL_DEPTH_BUFFER_BIT"><a title="pyprocessing.lights'.GL_DEPTH_BUFFER_BIT" class="py-name" href="#" onclick="return doclink('link-33', 'GL_DEPTH_BUFFER_BIT', 'link-33');">GL_DEPTH_BUFFER_BIT</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line">     </tt>
<a name="ellipse"></a><div id="ellipse-def"><a name="L40"></a><tt class="py-lineno"> 40</tt> <a class="py-toggle" href="#" id="ellipse-toggle" onclick="return toggle('ellipse');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.primitives-module.html#ellipse">ellipse</a><tt class="py-op">(</tt><tt class="py-param">x</tt><tt class="py-op">,</tt><tt class="py-param">y</tt><tt class="py-op">,</tt><tt class="py-param">width</tt><tt class="py-op">,</tt><tt class="py-param">height</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ellipse-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="ellipse-expanded"><a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line">    <tt class="py-docstring">"""Draws an ellipse with center at (x,y) and size (width,height)"""</tt> </tt>
<a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-34" class="py-name" targets="Class pyprocessing.globs.shape=pyprocessing.globs.shape-class.html"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-34', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-35" class="py-name" targets="Variable pyprocessing.globs.shape.quadric=pyprocessing.globs.shape-class.html#quadric"><a title="pyprocessing.globs.shape.quadric" class="py-name" href="#" onclick="return doclink('link-35', 'quadric', 'link-35');">quadric</a></tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line">        <tt id="link-36" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-36', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-37" class="py-name"><a title="pyprocessing.globs.shape.quadric" class="py-name" href="#" onclick="return doclink('link-37', 'quadric', 'link-35');">quadric</a></tt> <tt class="py-op">=</tt> <tt class="py-name">gl</tt><tt class="py-op">.</tt><tt id="link-38" class="py-name" targets="Variable pyprocessing.lights'.gluNewQuadric=pyprocessing.lights%27-module.html#gluNewQuadric"><a title="pyprocessing.lights'.gluNewQuadric" class="py-name" href="#" onclick="return doclink('link-38', 'gluNewQuadric', 'link-38');">gluNewQuadric</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-39" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-39', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-40" class="py-name" targets="Variable pyprocessing.globs.shape.ellipseFillDL=pyprocessing.globs.shape-class.html#ellipseFillDL"><a title="pyprocessing.globs.shape.ellipseFillDL" class="py-name" href="#" onclick="return doclink('link-40', 'ellipseFillDL', 'link-40');">ellipseFillDL</a></tt><tt class="py-op">==</tt><tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line">        <tt class="py-comment"># Create display lists for ellipse in case none was created before</tt> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt id="link-41" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-41', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-42" class="py-name"><a title="pyprocessing.globs.shape.ellipseFillDL" class="py-name" href="#" onclick="return doclink('link-42', 'ellipseFillDL', 'link-40');">ellipseFillDL</a></tt> <tt class="py-op">=</tt> <tt id="link-43" class="py-name" targets="Variable pyprocessing.lights'.glGenLists=pyprocessing.lights%27-module.html#glGenLists"><a title="pyprocessing.lights'.glGenLists" class="py-name" href="#" onclick="return doclink('link-43', 'glGenLists', 'link-43');">glGenLists</a></tt> <tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">        <tt id="link-44" class="py-name" targets="Variable pyprocessing.lights'.glNewList=pyprocessing.lights%27-module.html#glNewList"><a title="pyprocessing.lights'.glNewList" class="py-name" href="#" onclick="return doclink('link-44', 'glNewList', 'link-44');">glNewList</a></tt><tt class="py-op">(</tt><tt id="link-45" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-45', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-46" class="py-name"><a title="pyprocessing.globs.shape.ellipseFillDL" class="py-name" href="#" onclick="return doclink('link-46', 'ellipseFillDL', 'link-40');">ellipseFillDL</a></tt><tt class="py-op">,</tt> <tt id="link-47" class="py-name" targets="Variable pyprocessing.lights'.GL_COMPILE=pyprocessing.lights%27-module.html#GL_COMPILE"><a title="pyprocessing.lights'.GL_COMPILE" class="py-name" href="#" onclick="return doclink('link-47', 'GL_COMPILE', 'link-47');">GL_COMPILE</a></tt><tt class="py-op">)</tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line">        <tt id="link-48" class="py-name" targets="Variable pyprocessing.lights'.gluDisk=pyprocessing.lights%27-module.html#gluDisk"><a title="pyprocessing.lights'.gluDisk" class="py-name" href="#" onclick="return doclink('link-48', 'gluDisk', 'link-48');">gluDisk</a></tt><tt class="py-op">(</tt><tt id="link-49" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-49', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-50" class="py-name"><a title="pyprocessing.globs.shape.quadric" class="py-name" href="#" onclick="return doclink('link-50', 'quadric', 'link-35');">quadric</a></tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0.5</tt><tt class="py-op">,</tt><tt id="link-51" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-51', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-52" class="py-name" targets="Variable pyprocessing.globs.shape.ellipseDetail=pyprocessing.globs.shape-class.html#ellipseDetail"><a title="pyprocessing.globs.shape.ellipseDetail" class="py-name" href="#" onclick="return doclink('link-52', 'ellipseDetail', 'link-52');">ellipseDetail</a></tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line">        <tt id="link-53" class="py-name" targets="Variable pyprocessing.lights'.glEndList=pyprocessing.lights%27-module.html#glEndList"><a title="pyprocessing.lights'.glEndList" class="py-name" href="#" onclick="return doclink('link-53', 'glEndList', 'link-53');">glEndList</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">;</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">        <tt id="link-54" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-54', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-55" class="py-name" targets="Variable pyprocessing.globs.shape.ellipseStrokeDL=pyprocessing.globs.shape-class.html#ellipseStrokeDL"><a title="pyprocessing.globs.shape.ellipseStrokeDL" class="py-name" href="#" onclick="return doclink('link-55', 'ellipseStrokeDL', 'link-55');">ellipseStrokeDL</a></tt> <tt class="py-op">=</tt> <tt id="link-56" class="py-name"><a title="pyprocessing.lights'.glGenLists" class="py-name" href="#" onclick="return doclink('link-56', 'glGenLists', 'link-43');">glGenLists</a></tt> <tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line">        <tt id="link-57" class="py-name"><a title="pyprocessing.lights'.glNewList" class="py-name" href="#" onclick="return doclink('link-57', 'glNewList', 'link-44');">glNewList</a></tt><tt class="py-op">(</tt><tt id="link-58" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-58', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-59" class="py-name"><a title="pyprocessing.globs.shape.ellipseStrokeDL" class="py-name" href="#" onclick="return doclink('link-59', 'ellipseStrokeDL', 'link-55');">ellipseStrokeDL</a></tt><tt class="py-op">,</tt> <tt id="link-60" class="py-name"><a title="pyprocessing.lights'.GL_COMPILE" class="py-name" href="#" onclick="return doclink('link-60', 'GL_COMPILE', 'link-47');">GL_COMPILE</a></tt><tt class="py-op">)</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">        <tt id="link-61" class="py-name"><a title="pyprocessing.lights'.gluDisk" class="py-name" href="#" onclick="return doclink('link-61', 'gluDisk', 'link-48');">gluDisk</a></tt><tt class="py-op">(</tt><tt id="link-62" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-62', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-63" class="py-name"><a title="pyprocessing.globs.shape.quadric" class="py-name" href="#" onclick="return doclink('link-63', 'quadric', 'link-35');">quadric</a></tt><tt class="py-op">,</tt><tt class="py-number">0.5</tt><tt class="py-op">,</tt><tt class="py-number">0.5</tt><tt class="py-op">,</tt><tt id="link-64" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-64', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-65" class="py-name"><a title="pyprocessing.globs.shape.ellipseDetail" class="py-name" href="#" onclick="return doclink('link-65', 'ellipseDetail', 'link-52');">ellipseDetail</a></tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line">        <tt id="link-66" class="py-name"><a title="pyprocessing.lights'.glEndList" class="py-name" href="#" onclick="return doclink('link-66', 'glEndList', 'link-53');">glEndList</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">;</tt>         </tt>
<a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-67" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-67', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-68" class="py-name" targets="Function pyprocessing.attribs.ellipseMode()=pyprocessing.attribs-module.html#ellipseMode,Variable pyprocessing.globs.attrib.ellipseMode=pyprocessing.globs.attrib-class.html#ellipseMode"><a title="pyprocessing.attribs.ellipseMode
pyprocessing.globs.attrib.ellipseMode" class="py-name" href="#" onclick="return doclink('link-68', 'ellipseMode', 'link-68');">ellipseMode</a></tt><tt class="py-op">==</tt><tt id="link-69" class="py-name" targets="Variable pyprocessing.constants.CENTER=pyprocessing.constants-module.html#CENTER,Variable pyprocessing.lights'.CENTER=pyprocessing.lights%27-module.html#CENTER"><a title="pyprocessing.constants.CENTER
pyprocessing.lights'.CENTER" class="py-name" href="#" onclick="return doclink('link-69', 'CENTER', 'link-69');">CENTER</a></tt><tt class="py-op">:</tt> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line">        <tt id="link-70" class="py-name" targets="Variable pyprocessing.globs.mouse.x=pyprocessing.globs.mouse-class.html#x,Variable pyprocessing.globs.pmouse.x=pyprocessing.globs.pmouse-class.html#x,Variable pyprocessing.pvector.PVector.x=pyprocessing.pvector.PVector-class.html#x"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-70', 'x', 'link-70');">x</a></tt> <tt class="py-op">-=</tt> <tt id="link-71" class="py-name" targets="Variable pyprocessing.globs.screen.width=pyprocessing.globs.screen-class.html#width,Variable pyprocessing.pimage.PImage.width=pyprocessing.pimage.PImage-class.html#width"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-71', 'width', 'link-71');">width</a></tt><tt class="py-op">/</tt><tt class="py-number">2</tt> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line">        <tt id="link-72" class="py-name" targets="Variable pyprocessing.globs.mouse.y=pyprocessing.globs.mouse-class.html#y,Variable pyprocessing.globs.pmouse.y=pyprocessing.globs.pmouse-class.html#y,Variable pyprocessing.pvector.PVector.y=pyprocessing.pvector.PVector-class.html#y"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-72', 'y', 'link-72');">y</a></tt> <tt class="py-op">-=</tt> <tt id="link-73" class="py-name" targets="Variable pyprocessing.globs.screen.height=pyprocessing.globs.screen-class.html#height,Variable pyprocessing.pimage.PImage.height=pyprocessing.pimage.PImage-class.html#height"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-73', 'height', 'link-73');">height</a></tt><tt class="py-op">/</tt><tt class="py-number">2</tt> </tt>
<a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line">    <tt class="py-keyword">elif</tt> <tt id="link-74" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-74', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-75" class="py-name"><a title="pyprocessing.attribs.ellipseMode
pyprocessing.globs.attrib.ellipseMode" class="py-name" href="#" onclick="return doclink('link-75', 'ellipseMode', 'link-68');">ellipseMode</a></tt><tt class="py-op">==</tt><tt id="link-76" class="py-name" targets="Variable pyprocessing.constants.RADIUS=pyprocessing.constants-module.html#RADIUS,Variable pyprocessing.lights'.RADIUS=pyprocessing.lights%27-module.html#RADIUS"><a title="pyprocessing.constants.RADIUS
pyprocessing.lights'.RADIUS" class="py-name" href="#" onclick="return doclink('link-76', 'RADIUS', 'link-76');">RADIUS</a></tt><tt class="py-op">:</tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line">        <tt id="link-77" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-77', 'x', 'link-70');">x</a></tt> <tt class="py-op">-=</tt> <tt id="link-78" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-78', 'width', 'link-71');">width</a></tt> </tt>
<a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line">        <tt id="link-79" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-79', 'y', 'link-72');">y</a></tt> <tt class="py-op">-=</tt> <tt id="link-80" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-80', 'height', 'link-73');">height</a></tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">        <tt id="link-81" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-81', 'width', 'link-71');">width</a></tt> <tt class="py-op">*=</tt> <tt class="py-number">2</tt> </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">        <tt id="link-82" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-82', 'height', 'link-73');">height</a></tt> <tt class="py-op">*=</tt> <tt class="py-number">2</tt> </tt>
<a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">    <tt class="py-keyword">elif</tt> <tt id="link-83" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-83', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-84" class="py-name"><a title="pyprocessing.attribs.ellipseMode
pyprocessing.globs.attrib.ellipseMode" class="py-name" href="#" onclick="return doclink('link-84', 'ellipseMode', 'link-68');">ellipseMode</a></tt><tt class="py-op">==</tt><tt id="link-85" class="py-name" targets="Variable pyprocessing.constants.CORNERS=pyprocessing.constants-module.html#CORNERS,Variable pyprocessing.lights'.CORNERS=pyprocessing.lights%27-module.html#CORNERS"><a title="pyprocessing.constants.CORNERS
pyprocessing.lights'.CORNERS" class="py-name" href="#" onclick="return doclink('link-85', 'CORNERS', 'link-85');">CORNERS</a></tt><tt class="py-op">:</tt> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">        <tt id="link-86" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-86', 'width', 'link-71');">width</a></tt> <tt class="py-op">=</tt> <tt id="link-87" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-87', 'width', 'link-71');">width</a></tt><tt class="py-op">-</tt><tt id="link-88" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-88', 'x', 'link-70');">x</a></tt> </tt>
<a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line">        <tt id="link-89" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-89', 'height', 'link-73');">height</a></tt> <tt class="py-op">=</tt> <tt id="link-90" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-90', 'height', 'link-73');">height</a></tt><tt class="py-op">-</tt><tt id="link-91" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-91', 'y', 'link-72');">y</a></tt> </tt>
<a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">    <tt id="link-92" class="py-name" targets="Variable pyprocessing.lights'.glMatrixMode=pyprocessing.lights%27-module.html#glMatrixMode"><a title="pyprocessing.lights'.glMatrixMode" class="py-name" href="#" onclick="return doclink('link-92', 'glMatrixMode', 'link-92');">glMatrixMode</a></tt><tt class="py-op">(</tt><tt id="link-93" class="py-name" targets="Variable pyprocessing.lights'.GL_MODELVIEW=pyprocessing.lights%27-module.html#GL_MODELVIEW"><a title="pyprocessing.lights'.GL_MODELVIEW" class="py-name" href="#" onclick="return doclink('link-93', 'GL_MODELVIEW', 'link-93');">GL_MODELVIEW</a></tt><tt class="py-op">)</tt> </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line">    <tt id="link-94" class="py-name" targets="Variable pyprocessing.lights'.glPushMatrix=pyprocessing.lights%27-module.html#glPushMatrix"><a title="pyprocessing.lights'.glPushMatrix" class="py-name" href="#" onclick="return doclink('link-94', 'glPushMatrix', 'link-94');">glPushMatrix</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line">    <tt id="link-95" class="py-name" targets="Variable pyprocessing.lights'.glTranslatef=pyprocessing.lights%27-module.html#glTranslatef"><a title="pyprocessing.lights'.glTranslatef" class="py-name" href="#" onclick="return doclink('link-95', 'glTranslatef', 'link-95');">glTranslatef</a></tt><tt class="py-op">(</tt><tt id="link-96" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-96', 'x', 'link-70');">x</a></tt><tt class="py-op">,</tt><tt id="link-97" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-97', 'y', 'link-72');">y</a></tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
<a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line">    <tt id="link-98" class="py-name" targets="Variable pyprocessing.lights'.glScalef=pyprocessing.lights%27-module.html#glScalef"><a title="pyprocessing.lights'.glScalef" class="py-name" href="#" onclick="return doclink('link-98', 'glScalef', 'link-98');">glScalef</a></tt><tt class="py-op">(</tt><tt id="link-99" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-99', 'width', 'link-71');">width</a></tt><tt class="py-op">,</tt><tt id="link-100" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-100', 'height', 'link-73');">height</a></tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">    <tt id="link-101" class="py-name"><a title="pyprocessing.lights'.glTranslatef" class="py-name" href="#" onclick="return doclink('link-101', 'glTranslatef', 'link-95');">glTranslatef</a></tt><tt class="py-op">(</tt><tt class="py-number">0.5</tt><tt class="py-op">,</tt><tt class="py-number">0.5</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-102" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-102', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-103" class="py-name" targets="Variable pyprocessing.globs.attrib.fillColor=pyprocessing.globs.attrib-class.html#fillColor"><a title="pyprocessing.globs.attrib.fillColor" class="py-name" href="#" onclick="return doclink('link-103', 'fillColor', 'link-103');">fillColor</a></tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line">        <tt id="link-104" class="py-name" targets="Variable pyprocessing.lights'.glColor4f=pyprocessing.lights%27-module.html#glColor4f"><a title="pyprocessing.lights'.glColor4f" class="py-name" href="#" onclick="return doclink('link-104', 'glColor4f', 'link-104');">glColor4f</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt id="link-105" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-105', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-106" class="py-name"><a title="pyprocessing.globs.attrib.fillColor" class="py-name" href="#" onclick="return doclink('link-106', 'fillColor', 'link-103');">fillColor</a></tt><tt class="py-op">)</tt> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line">        <tt id="link-107" class="py-name" targets="Function pyprocessing.primitives._smoothFixHackBegin()=pyprocessing.primitives-module.html#_smoothFixHackBegin"><a title="pyprocessing.primitives._smoothFixHackBegin" class="py-name" href="#" onclick="return doclink('link-107', '_smoothFixHackBegin', 'link-107');">_smoothFixHackBegin</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line">        <tt id="link-108" class="py-name" targets="Variable pyprocessing.lights'.glCallList=pyprocessing.lights%27-module.html#glCallList"><a title="pyprocessing.lights'.glCallList" class="py-name" href="#" onclick="return doclink('link-108', 'glCallList', 'link-108');">glCallList</a></tt><tt class="py-op">(</tt><tt id="link-109" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-109', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-110" class="py-name"><a title="pyprocessing.globs.shape.ellipseFillDL" class="py-name" href="#" onclick="return doclink('link-110', 'ellipseFillDL', 'link-40');">ellipseFillDL</a></tt><tt class="py-op">)</tt> </tt>
<a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line">        <tt id="link-111" class="py-name" targets="Function pyprocessing.primitives._smoothFixHackEnd()=pyprocessing.primitives-module.html#_smoothFixHackEnd"><a title="pyprocessing.primitives._smoothFixHackEnd" class="py-name" href="#" onclick="return doclink('link-111', '_smoothFixHackEnd', 'link-111');">_smoothFixHackEnd</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line">    <tt id="link-112" class="py-name" targets="Variable pyprocessing.lights'.glPushAttrib=pyprocessing.lights%27-module.html#glPushAttrib"><a title="pyprocessing.lights'.glPushAttrib" class="py-name" href="#" onclick="return doclink('link-112', 'glPushAttrib', 'link-112');">glPushAttrib</a></tt><tt class="py-op">(</tt><tt id="link-113" class="py-name" targets="Variable pyprocessing.lights'.GL_POLYGON_BIT=pyprocessing.lights%27-module.html#GL_POLYGON_BIT"><a title="pyprocessing.lights'.GL_POLYGON_BIT" class="py-name" href="#" onclick="return doclink('link-113', 'GL_POLYGON_BIT', 'link-113');">GL_POLYGON_BIT</a></tt><tt class="py-op">)</tt> </tt>
<a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line">    <tt id="link-114" class="py-name" targets="Variable pyprocessing.lights'.glPolygonMode=pyprocessing.lights%27-module.html#glPolygonMode"><a title="pyprocessing.lights'.glPolygonMode" class="py-name" href="#" onclick="return doclink('link-114', 'glPolygonMode', 'link-114');">glPolygonMode</a></tt><tt class="py-op">(</tt><tt id="link-115" class="py-name" targets="Variable pyprocessing.lights'.GL_FRONT_AND_BACK=pyprocessing.lights%27-module.html#GL_FRONT_AND_BACK"><a title="pyprocessing.lights'.GL_FRONT_AND_BACK" class="py-name" href="#" onclick="return doclink('link-115', 'GL_FRONT_AND_BACK', 'link-115');">GL_FRONT_AND_BACK</a></tt><tt class="py-op">,</tt><tt id="link-116" class="py-name" targets="Variable pyprocessing.lights'.GL_LINE=pyprocessing.lights%27-module.html#GL_LINE"><a title="pyprocessing.lights'.GL_LINE" class="py-name" href="#" onclick="return doclink('link-116', 'GL_LINE', 'link-116');">GL_LINE</a></tt><tt class="py-op">)</tt> </tt>
<a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line">    <tt id="link-117" class="py-name" targets="Variable pyprocessing.lights'.glLineWidth=pyprocessing.lights%27-module.html#glLineWidth"><a title="pyprocessing.lights'.glLineWidth" class="py-name" href="#" onclick="return doclink('link-117', 'glLineWidth', 'link-117');">glLineWidth</a></tt> <tt class="py-op">(</tt><tt id="link-118" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-118', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-119" class="py-name" targets="Function pyprocessing.attribs.strokeWeight()=pyprocessing.attribs-module.html#strokeWeight,Variable pyprocessing.globs.attrib.strokeWeight=pyprocessing.globs.attrib-class.html#strokeWeight"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-119', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">)</tt> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-120" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-120', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-121" class="py-name" targets="Variable pyprocessing.globs.attrib.strokeColor=pyprocessing.globs.attrib-class.html#strokeColor"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-121', 'strokeColor', 'link-121');">strokeColor</a></tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">        <tt id="link-122" class="py-name"><a title="pyprocessing.lights'.glColor4f" class="py-name" href="#" onclick="return doclink('link-122', 'glColor4f', 'link-104');">glColor4f</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt id="link-123" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-123', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-124" class="py-name"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-124', 'strokeColor', 'link-121');">strokeColor</a></tt><tt class="py-op">)</tt> </tt>
<a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line">        <tt id="link-125" class="py-name"><a title="pyprocessing.lights'.glCallList" class="py-name" href="#" onclick="return doclink('link-125', 'glCallList', 'link-108');">glCallList</a></tt><tt class="py-op">(</tt><tt id="link-126" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-126', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-127" class="py-name"><a title="pyprocessing.globs.shape.ellipseStrokeDL" class="py-name" href="#" onclick="return doclink('link-127', 'ellipseStrokeDL', 'link-55');">ellipseStrokeDL</a></tt><tt class="py-op">)</tt> </tt>
<a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">    <tt id="link-128" class="py-name" targets="Variable pyprocessing.lights'.glPopAttrib=pyprocessing.lights%27-module.html#glPopAttrib"><a title="pyprocessing.lights'.glPopAttrib" class="py-name" href="#" onclick="return doclink('link-128', 'glPopAttrib', 'link-128');">glPopAttrib</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt>     </tt>
<a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line">    <tt id="link-129" class="py-name" targets="Variable pyprocessing.lights'.glPopMatrix=pyprocessing.lights%27-module.html#glPopMatrix"><a title="pyprocessing.lights'.glPopMatrix" class="py-name" href="#" onclick="return doclink('link-129', 'glPopMatrix', 'link-129');">glPopMatrix</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line"> </tt>
<a name="arc"></a><div id="arc-def"><a name="L84"></a><tt class="py-lineno"> 84</tt> <a class="py-toggle" href="#" id="arc-toggle" onclick="return toggle('arc');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.primitives-module.html#arc">arc</a><tt class="py-op">(</tt><tt class="py-param">x</tt><tt class="py-op">,</tt><tt class="py-param">y</tt><tt class="py-op">,</tt><tt class="py-param">width</tt><tt class="py-op">,</tt><tt class="py-param">height</tt><tt class="py-op">,</tt> <tt class="py-param">start</tt><tt class="py-op">,</tt> <tt class="py-param">stop</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="arc-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="arc-expanded"><a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line">    <tt class="py-docstring">"""Draws an ellipse arc with lower left corner at (x,y) and size (width,height)"""</tt> </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-130" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-130', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-131" class="py-name"><a title="pyprocessing.attribs.ellipseMode
pyprocessing.globs.attrib.ellipseMode" class="py-name" href="#" onclick="return doclink('link-131', 'ellipseMode', 'link-68');">ellipseMode</a></tt><tt class="py-op">==</tt><tt id="link-132" class="py-name"><a title="pyprocessing.constants.CENTER
pyprocessing.lights'.CENTER" class="py-name" href="#" onclick="return doclink('link-132', 'CENTER', 'link-69');">CENTER</a></tt><tt class="py-op">:</tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line">        <tt id="link-133" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-133', 'x', 'link-70');">x</a></tt> <tt class="py-op">-=</tt> <tt id="link-134" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-134', 'width', 'link-71');">width</a></tt><tt class="py-op">/</tt><tt class="py-number">2</tt> </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line">        <tt id="link-135" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-135', 'y', 'link-72');">y</a></tt> <tt class="py-op">-=</tt> <tt id="link-136" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-136', 'height', 'link-73');">height</a></tt><tt class="py-op">/</tt><tt class="py-number">2</tt> </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">    <tt class="py-keyword">elif</tt> <tt id="link-137" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-137', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-138" class="py-name"><a title="pyprocessing.attribs.ellipseMode
pyprocessing.globs.attrib.ellipseMode" class="py-name" href="#" onclick="return doclink('link-138', 'ellipseMode', 'link-68');">ellipseMode</a></tt><tt class="py-op">==</tt><tt id="link-139" class="py-name"><a title="pyprocessing.constants.RADIUS
pyprocessing.lights'.RADIUS" class="py-name" href="#" onclick="return doclink('link-139', 'RADIUS', 'link-76');">RADIUS</a></tt><tt class="py-op">:</tt> </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line">        <tt id="link-140" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-140', 'x', 'link-70');">x</a></tt> <tt class="py-op">-=</tt> <tt id="link-141" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-141', 'width', 'link-71');">width</a></tt> </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line">        <tt id="link-142" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-142', 'y', 'link-72');">y</a></tt> <tt class="py-op">-=</tt> <tt id="link-143" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-143', 'height', 'link-73');">height</a></tt> </tt>
<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line">        <tt id="link-144" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-144', 'width', 'link-71');">width</a></tt> <tt class="py-op">*=</tt> <tt class="py-number">2</tt> </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line">        <tt id="link-145" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-145', 'height', 'link-73');">height</a></tt> <tt class="py-op">*=</tt> <tt class="py-number">2</tt> </tt>
<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line">    <tt class="py-keyword">elif</tt> <tt id="link-146" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-146', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-147" class="py-name"><a title="pyprocessing.attribs.ellipseMode
pyprocessing.globs.attrib.ellipseMode" class="py-name" href="#" onclick="return doclink('link-147', 'ellipseMode', 'link-68');">ellipseMode</a></tt><tt class="py-op">==</tt><tt id="link-148" class="py-name"><a title="pyprocessing.constants.CORNERS
pyprocessing.lights'.CORNERS" class="py-name" href="#" onclick="return doclink('link-148', 'CORNERS', 'link-85');">CORNERS</a></tt><tt class="py-op">:</tt> </tt>
<a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">        <tt id="link-149" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-149', 'width', 'link-71');">width</a></tt> <tt class="py-op">=</tt> <tt id="link-150" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-150', 'width', 'link-71');">width</a></tt><tt class="py-op">-</tt><tt id="link-151" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-151', 'x', 'link-70');">x</a></tt> </tt>
<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line">        <tt id="link-152" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-152', 'height', 'link-73');">height</a></tt> <tt class="py-op">=</tt> <tt id="link-153" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-153', 'height', 'link-73');">height</a></tt><tt class="py-op">-</tt><tt id="link-154" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-154', 'y', 'link-72');">y</a></tt> </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line">    <tt id="link-155" class="py-name"><a title="pyprocessing.lights'.glMatrixMode" class="py-name" href="#" onclick="return doclink('link-155', 'glMatrixMode', 'link-92');">glMatrixMode</a></tt><tt class="py-op">(</tt><tt id="link-156" class="py-name"><a title="pyprocessing.lights'.GL_MODELVIEW" class="py-name" href="#" onclick="return doclink('link-156', 'GL_MODELVIEW', 'link-93');">GL_MODELVIEW</a></tt><tt class="py-op">)</tt> </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line">    <tt id="link-157" class="py-name"><a title="pyprocessing.lights'.glPushMatrix" class="py-name" href="#" onclick="return doclink('link-157', 'glPushMatrix', 'link-94');">glPushMatrix</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-158" class="py-name"><a title="pyprocessing.config
pyprocessing.globs.canvas.config" class="py-name" href="#" onclick="return doclink('link-158', 'config', 'link-5');">config</a></tt><tt class="py-op">.</tt><tt id="link-159" class="py-name" targets="Variable pyprocessing.config.coordInversionHack=pyprocessing.config-module.html#coordInversionHack"><a title="pyprocessing.config.coordInversionHack" class="py-name" href="#" onclick="return doclink('link-159', 'coordInversionHack', 'link-159');">coordInversionHack</a></tt><tt class="py-op">:</tt> </tt>
<a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line">        <tt id="link-160" class="py-name"><a title="pyprocessing.lights'.glTranslatef" class="py-name" href="#" onclick="return doclink('link-160', 'glTranslatef', 'link-95');">glTranslatef</a></tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt id="link-161" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-161', 'y', 'link-72');">y</a></tt><tt class="py-op">*</tt><tt class="py-number">2</tt><tt class="py-op">+</tt><tt id="link-162" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-162', 'height', 'link-73');">height</a></tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
<a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line">        <tt id="link-163" class="py-name"><a title="pyprocessing.lights'.glScalef" class="py-name" href="#" onclick="return doclink('link-163', 'glScalef', 'link-98');">glScalef</a></tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">    <tt id="link-164" class="py-name"><a title="pyprocessing.lights'.glTranslatef" class="py-name" href="#" onclick="return doclink('link-164', 'glTranslatef', 'link-95');">glTranslatef</a></tt><tt class="py-op">(</tt><tt id="link-165" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-165', 'x', 'link-70');">x</a></tt><tt class="py-op">,</tt><tt id="link-166" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-166', 'y', 'link-72');">y</a></tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">    <tt id="link-167" class="py-name"><a title="pyprocessing.lights'.glScalef" class="py-name" href="#" onclick="return doclink('link-167', 'glScalef', 'link-98');">glScalef</a></tt><tt class="py-op">(</tt><tt id="link-168" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-168', 'width', 'link-71');">width</a></tt><tt class="py-op">,</tt><tt id="link-169" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-169', 'height', 'link-73');">height</a></tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line">    <tt id="link-170" class="py-name"><a title="pyprocessing.lights'.glTranslatef" class="py-name" href="#" onclick="return doclink('link-170', 'glTranslatef', 'link-95');">glTranslatef</a></tt><tt class="py-op">(</tt><tt class="py-number">0.5</tt><tt class="py-op">,</tt><tt class="py-number">0.5</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
<a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">stop</tt><tt class="py-op">&lt;</tt><tt class="py-name">start</tt><tt class="py-op">:</tt> <tt class="py-name">start</tt><tt class="py-op">,</tt><tt class="py-name">stop</tt><tt class="py-op">=</tt><tt class="py-name">stop</tt><tt class="py-op">,</tt><tt class="py-name">start</tt> </tt>
<a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line">    <tt class="py-name">sweep</tt> <tt class="py-op">=</tt> <tt class="py-name">math</tt><tt class="py-op">.</tt><tt class="py-name">degrees</tt><tt class="py-op">(</tt><tt class="py-name">stop</tt><tt class="py-op">-</tt><tt class="py-name">start</tt><tt class="py-op">)</tt> </tt>
<a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line">    <tt class="py-name">start</tt> <tt class="py-op">=</tt> <tt class="py-name">math</tt><tt class="py-op">.</tt><tt class="py-name">degrees</tt><tt class="py-op">(</tt><tt class="py-name">start</tt><tt class="py-op">)</tt><tt class="py-op">+</tt><tt class="py-number">90</tt> </tt>
<a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line">    <tt class="py-name">npts</tt> <tt class="py-op">=</tt> <tt class="py-name">max</tt><tt class="py-op">(</tt><tt class="py-number">5</tt><tt class="py-op">,</tt><tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">abs</tt><tt class="py-op">(</tt><tt class="py-name">sweep</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-171" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-171', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-172" class="py-name"><a title="pyprocessing.globs.shape.quadric" class="py-name" href="#" onclick="return doclink('link-172', 'quadric', 'link-35');">quadric</a></tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line">        <tt id="link-173" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-173', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-174" class="py-name"><a title="pyprocessing.globs.shape.quadric" class="py-name" href="#" onclick="return doclink('link-174', 'quadric', 'link-35');">quadric</a></tt> <tt class="py-op">=</tt> <tt class="py-name">gl</tt><tt class="py-op">.</tt><tt id="link-175" class="py-name"><a title="pyprocessing.lights'.gluNewQuadric" class="py-name" href="#" onclick="return doclink('link-175', 'gluNewQuadric', 'link-38');">gluNewQuadric</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-176" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-176', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-177" class="py-name"><a title="pyprocessing.globs.attrib.fillColor" class="py-name" href="#" onclick="return doclink('link-177', 'fillColor', 'link-103');">fillColor</a></tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line">        <tt id="link-178" class="py-name"><a title="pyprocessing.lights'.glColor4f" class="py-name" href="#" onclick="return doclink('link-178', 'glColor4f', 'link-104');">glColor4f</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt id="link-179" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-179', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-180" class="py-name"><a title="pyprocessing.globs.attrib.fillColor" class="py-name" href="#" onclick="return doclink('link-180', 'fillColor', 'link-103');">fillColor</a></tt><tt class="py-op">)</tt> </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">        <tt id="link-181" class="py-name"><a title="pyprocessing.primitives._smoothFixHackBegin" class="py-name" href="#" onclick="return doclink('link-181', '_smoothFixHackBegin', 'link-107');">_smoothFixHackBegin</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line">        <tt id="link-182" class="py-name" targets="Variable pyprocessing.lights'.gluPartialDisk=pyprocessing.lights%27-module.html#gluPartialDisk"><a title="pyprocessing.lights'.gluPartialDisk" class="py-name" href="#" onclick="return doclink('link-182', 'gluPartialDisk', 'link-182');">gluPartialDisk</a></tt><tt class="py-op">(</tt><tt id="link-183" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-183', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-184" class="py-name"><a title="pyprocessing.globs.shape.quadric" class="py-name" href="#" onclick="return doclink('link-184', 'quadric', 'link-35');">quadric</a></tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0.5</tt><tt class="py-op">,</tt><tt class="py-name">npts</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-name">start</tt><tt class="py-op">,</tt><tt class="py-name">sweep</tt><tt class="py-op">)</tt> </tt>
<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line">        <tt id="link-185" class="py-name"><a title="pyprocessing.primitives._smoothFixHackEnd" class="py-name" href="#" onclick="return doclink('link-185', '_smoothFixHackEnd', 'link-111');">_smoothFixHackEnd</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line">    <tt id="link-186" class="py-name"><a title="pyprocessing.lights'.glPushAttrib" class="py-name" href="#" onclick="return doclink('link-186', 'glPushAttrib', 'link-112');">glPushAttrib</a></tt><tt class="py-op">(</tt><tt id="link-187" class="py-name"><a title="pyprocessing.lights'.GL_POLYGON_BIT" class="py-name" href="#" onclick="return doclink('link-187', 'GL_POLYGON_BIT', 'link-113');">GL_POLYGON_BIT</a></tt><tt class="py-op">)</tt> </tt>
<a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line">    <tt id="link-188" class="py-name"><a title="pyprocessing.lights'.glPolygonMode" class="py-name" href="#" onclick="return doclink('link-188', 'glPolygonMode', 'link-114');">glPolygonMode</a></tt><tt class="py-op">(</tt><tt id="link-189" class="py-name"><a title="pyprocessing.lights'.GL_FRONT_AND_BACK" class="py-name" href="#" onclick="return doclink('link-189', 'GL_FRONT_AND_BACK', 'link-115');">GL_FRONT_AND_BACK</a></tt><tt class="py-op">,</tt><tt id="link-190" class="py-name"><a title="pyprocessing.lights'.GL_LINE" class="py-name" href="#" onclick="return doclink('link-190', 'GL_LINE', 'link-116');">GL_LINE</a></tt><tt class="py-op">)</tt> </tt>
<a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line">    <tt id="link-191" class="py-name"><a title="pyprocessing.lights'.glLineWidth" class="py-name" href="#" onclick="return doclink('link-191', 'glLineWidth', 'link-117');">glLineWidth</a></tt> <tt class="py-op">(</tt><tt id="link-192" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-192', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-193" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-193', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">)</tt> </tt>
<a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-194" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-194', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-195" class="py-name"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-195', 'strokeColor', 'link-121');">strokeColor</a></tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line">        <tt id="link-196" class="py-name"><a title="pyprocessing.lights'.glColor4f" class="py-name" href="#" onclick="return doclink('link-196', 'glColor4f', 'link-104');">glColor4f</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt id="link-197" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-197', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-198" class="py-name"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-198', 'strokeColor', 'link-121');">strokeColor</a></tt><tt class="py-op">)</tt> </tt>
<a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line">        <tt id="link-199" class="py-name"><a title="pyprocessing.lights'.gluPartialDisk" class="py-name" href="#" onclick="return doclink('link-199', 'gluPartialDisk', 'link-182');">gluPartialDisk</a></tt><tt class="py-op">(</tt><tt id="link-200" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-200', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-201" class="py-name"><a title="pyprocessing.globs.shape.quadric" class="py-name" href="#" onclick="return doclink('link-201', 'quadric', 'link-35');">quadric</a></tt><tt class="py-op">,</tt><tt class="py-number">0.5</tt><tt class="py-op">,</tt><tt class="py-number">0.5</tt><tt class="py-op">,</tt><tt class="py-name">npts</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-name">start</tt><tt class="py-op">,</tt><tt class="py-name">sweep</tt><tt class="py-op">)</tt> </tt>
<a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line">    <tt id="link-202" class="py-name"><a title="pyprocessing.lights'.glPopAttrib" class="py-name" href="#" onclick="return doclink('link-202', 'glPopAttrib', 'link-128');">glPopAttrib</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt>     </tt>
<a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line">    <tt id="link-203" class="py-name"><a title="pyprocessing.lights'.glPopMatrix" class="py-name" href="#" onclick="return doclink('link-203', 'glPopMatrix', 'link-129');">glPopMatrix</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line">         </tt>
<a name="rect"></a><div id="rect-def"><a name="L125"></a><tt class="py-lineno">125</tt> <a class="py-toggle" href="#" id="rect-toggle" onclick="return toggle('rect');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.primitives-module.html#rect">rect</a><tt class="py-op">(</tt><tt class="py-param">x</tt><tt class="py-op">,</tt><tt class="py-param">y</tt><tt class="py-op">,</tt><tt class="py-param">width</tt><tt class="py-op">,</tt><tt class="py-param">height</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="rect-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="rect-expanded"><a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line">    <tt class="py-docstring">"""Draws a rectangle with lower left corner at (x,y) and size (width,height)"""</tt> </tt>
<a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-204" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-204', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-205" class="py-name" targets="Function pyprocessing.attribs.rectMode()=pyprocessing.attribs-module.html#rectMode,Variable pyprocessing.globs.attrib.rectMode=pyprocessing.globs.attrib-class.html#rectMode"><a title="pyprocessing.attribs.rectMode
pyprocessing.globs.attrib.rectMode" class="py-name" href="#" onclick="return doclink('link-205', 'rectMode', 'link-205');">rectMode</a></tt><tt class="py-op">==</tt><tt id="link-206" class="py-name"><a title="pyprocessing.constants.CENTER
pyprocessing.lights'.CENTER" class="py-name" href="#" onclick="return doclink('link-206', 'CENTER', 'link-69');">CENTER</a></tt><tt class="py-op">:</tt> </tt>
<a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line">        <tt id="link-207" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-207', 'x', 'link-70');">x</a></tt> <tt class="py-op">-=</tt> <tt id="link-208" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-208', 'width', 'link-71');">width</a></tt><tt class="py-op">/</tt><tt class="py-number">2</tt> </tt>
<a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line">        <tt id="link-209" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-209', 'y', 'link-72');">y</a></tt> <tt class="py-op">-=</tt> <tt id="link-210" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-210', 'height', 'link-73');">height</a></tt><tt class="py-op">/</tt><tt class="py-number">2</tt> </tt>
<a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line">    <tt class="py-keyword">elif</tt> <tt id="link-211" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-211', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-212" class="py-name"><a title="pyprocessing.attribs.rectMode
pyprocessing.globs.attrib.rectMode" class="py-name" href="#" onclick="return doclink('link-212', 'rectMode', 'link-205');">rectMode</a></tt><tt class="py-op">==</tt><tt id="link-213" class="py-name"><a title="pyprocessing.constants.RADIUS
pyprocessing.lights'.RADIUS" class="py-name" href="#" onclick="return doclink('link-213', 'RADIUS', 'link-76');">RADIUS</a></tt><tt class="py-op">:</tt> </tt>
<a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line">        <tt id="link-214" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-214', 'x', 'link-70');">x</a></tt> <tt class="py-op">-=</tt> <tt id="link-215" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-215', 'width', 'link-71');">width</a></tt> </tt>
<a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line">        <tt id="link-216" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-216', 'y', 'link-72');">y</a></tt> <tt class="py-op">-=</tt> <tt id="link-217" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-217', 'height', 'link-73');">height</a></tt> </tt>
<a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line">        <tt id="link-218" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-218', 'width', 'link-71');">width</a></tt> <tt class="py-op">*=</tt> <tt class="py-number">2</tt> </tt>
<a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line">        <tt id="link-219" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-219', 'height', 'link-73');">height</a></tt> <tt class="py-op">*=</tt> <tt class="py-number">2</tt> </tt>
<a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line">    <tt class="py-keyword">elif</tt> <tt id="link-220" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-220', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-221" class="py-name"><a title="pyprocessing.attribs.rectMode
pyprocessing.globs.attrib.rectMode" class="py-name" href="#" onclick="return doclink('link-221', 'rectMode', 'link-205');">rectMode</a></tt><tt class="py-op">==</tt><tt id="link-222" class="py-name"><a title="pyprocessing.constants.CORNERS
pyprocessing.lights'.CORNERS" class="py-name" href="#" onclick="return doclink('link-222', 'CORNERS', 'link-85');">CORNERS</a></tt><tt class="py-op">:</tt> </tt>
<a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line">        <tt id="link-223" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-223', 'width', 'link-71');">width</a></tt> <tt class="py-op">=</tt> <tt id="link-224" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-224', 'width', 'link-71');">width</a></tt><tt class="py-op">-</tt><tt id="link-225" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-225', 'x', 'link-70');">x</a></tt> </tt>
<a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line">        <tt id="link-226" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-226', 'height', 'link-73');">height</a></tt> <tt class="py-op">=</tt> <tt id="link-227" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-227', 'height', 'link-73');">height</a></tt><tt class="py-op">-</tt><tt id="link-228" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-228', 'y', 'link-72');">y</a></tt> </tt>
<a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-229" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-229', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-230" class="py-name"><a title="pyprocessing.globs.attrib.fillColor" class="py-name" href="#" onclick="return doclink('link-230', 'fillColor', 'link-103');">fillColor</a></tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L139"></a><tt class="py-lineno">139</tt>  <tt class="py-line">        <tt id="link-231" class="py-name"><a title="pyprocessing.lights'.glColor4f" class="py-name" href="#" onclick="return doclink('link-231', 'glColor4f', 'link-104');">glColor4f</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt id="link-232" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-232', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-233" class="py-name"><a title="pyprocessing.globs.attrib.fillColor" class="py-name" href="#" onclick="return doclink('link-233', 'fillColor', 'link-103');">fillColor</a></tt><tt class="py-op">)</tt> </tt>
<a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line">        <tt id="link-234" class="py-name"><a title="pyprocessing.primitives._smoothFixHackBegin" class="py-name" href="#" onclick="return doclink('link-234', '_smoothFixHackBegin', 'link-107');">_smoothFixHackBegin</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L141"></a><tt class="py-lineno">141</tt>  <tt class="py-line">        <tt id="link-235" class="py-name" targets="Variable pyprocessing.lights'.glBegin=pyprocessing.lights%27-module.html#glBegin"><a title="pyprocessing.lights'.glBegin" class="py-name" href="#" onclick="return doclink('link-235', 'glBegin', 'link-235');">glBegin</a></tt><tt class="py-op">(</tt><tt id="link-236" class="py-name" targets="Variable pyprocessing.lights'.GL_POLYGON=pyprocessing.lights%27-module.html#GL_POLYGON"><a title="pyprocessing.lights'.GL_POLYGON" class="py-name" href="#" onclick="return doclink('link-236', 'GL_POLYGON', 'link-236');">GL_POLYGON</a></tt><tt class="py-op">)</tt> </tt>
<a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line">        <tt id="link-237" class="py-name" targets="Variable pyprocessing.lights'.glVertex2f=pyprocessing.lights%27-module.html#glVertex2f"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-237', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-238" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-238', 'x', 'link-70');">x</a></tt><tt class="py-op">,</tt><tt id="link-239" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-239', 'y', 'link-72');">y</a></tt><tt class="py-op">)</tt> </tt>
<a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line">        <tt id="link-240" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-240', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-241" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-241', 'x', 'link-70');">x</a></tt><tt class="py-op">+</tt><tt id="link-242" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-242', 'width', 'link-71');">width</a></tt><tt class="py-op">,</tt><tt id="link-243" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-243', 'y', 'link-72');">y</a></tt><tt class="py-op">)</tt> </tt>
<a name="L144"></a><tt class="py-lineno">144</tt>  <tt class="py-line">        <tt id="link-244" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-244', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-245" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-245', 'x', 'link-70');">x</a></tt><tt class="py-op">+</tt><tt id="link-246" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-246', 'width', 'link-71');">width</a></tt><tt class="py-op">,</tt><tt id="link-247" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-247', 'y', 'link-72');">y</a></tt><tt class="py-op">+</tt><tt id="link-248" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-248', 'height', 'link-73');">height</a></tt><tt class="py-op">)</tt> </tt>
<a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line">        <tt id="link-249" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-249', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-250" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-250', 'x', 'link-70');">x</a></tt><tt class="py-op">,</tt><tt id="link-251" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-251', 'y', 'link-72');">y</a></tt><tt class="py-op">+</tt><tt id="link-252" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-252', 'height', 'link-73');">height</a></tt><tt class="py-op">)</tt> </tt>
<a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line">        <tt id="link-253" class="py-name" targets="Variable pyprocessing.lights'.glEnd=pyprocessing.lights%27-module.html#glEnd"><a title="pyprocessing.lights'.glEnd" class="py-name" href="#" onclick="return doclink('link-253', 'glEnd', 'link-253');">glEnd</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L147"></a><tt class="py-lineno">147</tt>  <tt class="py-line">        <tt id="link-254" class="py-name"><a title="pyprocessing.primitives._smoothFixHackEnd" class="py-name" href="#" onclick="return doclink('link-254', '_smoothFixHackEnd', 'link-111');">_smoothFixHackEnd</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L148"></a><tt class="py-lineno">148</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-255" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-255', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-256" class="py-name"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-256', 'strokeColor', 'link-121');">strokeColor</a></tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L149"></a><tt class="py-lineno">149</tt>  <tt class="py-line">        <tt id="link-257" class="py-name"><a title="pyprocessing.lights'.glLineWidth" class="py-name" href="#" onclick="return doclink('link-257', 'glLineWidth', 'link-117');">glLineWidth</a></tt> <tt class="py-op">(</tt><tt id="link-258" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-258', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-259" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-259', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">)</tt> </tt>
<a name="L150"></a><tt class="py-lineno">150</tt>  <tt class="py-line">        <tt id="link-260" class="py-name"><a title="pyprocessing.lights'.glColor4f" class="py-name" href="#" onclick="return doclink('link-260', 'glColor4f', 'link-104');">glColor4f</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt id="link-261" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-261', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-262" class="py-name"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-262', 'strokeColor', 'link-121');">strokeColor</a></tt><tt class="py-op">)</tt> </tt>
<a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-263" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-263', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-264" class="py-name" targets="Function pyprocessing.attribs.strokeJoin()=pyprocessing.attribs-module.html#strokeJoin,Variable pyprocessing.globs.attrib.strokeJoin=pyprocessing.globs.attrib-class.html#strokeJoin"><a title="pyprocessing.attribs.strokeJoin
pyprocessing.globs.attrib.strokeJoin" class="py-name" href="#" onclick="return doclink('link-264', 'strokeJoin', 'link-264');">strokeJoin</a></tt> <tt class="py-op">==</tt> <tt id="link-265" class="py-name" targets="Variable pyprocessing.MITER=pyprocessing-module.html#MITER,Variable pyprocessing.attribs.MITER=pyprocessing.attribs-module.html#MITER,Variable pyprocessing.colors.MITER=pyprocessing.colors-module.html#MITER,Variable pyprocessing.config.MITER=pyprocessing.config-module.html#MITER,Variable pyprocessing.constants.MITER=pyprocessing.constants-module.html#MITER,Variable pyprocessing.fonts.MITER=pyprocessing.fonts-module.html#MITER,Variable pyprocessing.globs.MITER=pyprocessing.globs-module.html#MITER,Variable pyprocessing.lights'.MITER=pyprocessing.lights%27-module.html#MITER,Variable pyprocessing.materials.MITER=pyprocessing.materials-module.html#MITER,Variable pyprocessing.pimage.MITER=pyprocessing.pimage-module.html#MITER,Variable pyprocessing.primitives.MITER=pyprocessing.primitives-module.html#MITER,Variable pyprocessing.shapes.MITER=pyprocessing.shapes-module.html#MITER,Variable pyprocessing.transformations.MITER=pyprocessing.transformations-module.html#MITER"><a title="pyprocessing.MITER
pyprocessing.attribs.MITER
pyprocessing.colors.MITER
pyprocessing.config.MITER
pyprocessing.constants.MITER
pyprocessing.fonts.MITER
pyprocessing.globs.MITER
pyprocessing.lights'.MITER
pyprocessing.materials.MITER
pyprocessing.pimage.MITER
pyprocessing.primitives.MITER
pyprocessing.shapes.MITER
pyprocessing.transformations.MITER" class="py-name" href="#" onclick="return doclink('link-265', 'MITER', 'link-265');">MITER</a></tt><tt class="py-op">:</tt> </tt>
<a name="L152"></a><tt class="py-lineno">152</tt>  <tt class="py-line">            <tt id="link-266" class="py-name"><a title="pyprocessing.lights'.glBegin" class="py-name" href="#" onclick="return doclink('link-266', 'glBegin', 'link-235');">glBegin</a></tt><tt class="py-op">(</tt><tt id="link-267" class="py-name" targets="Variable pyprocessing.lights'.GL_LINES=pyprocessing.lights%27-module.html#GL_LINES"><a title="pyprocessing.lights'.GL_LINES" class="py-name" href="#" onclick="return doclink('link-267', 'GL_LINES', 'link-267');">GL_LINES</a></tt><tt class="py-op">)</tt> </tt>
<a name="L153"></a><tt class="py-lineno">153</tt>  <tt class="py-line">            <tt id="link-268" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-268', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-269" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-269', 'x', 'link-70');">x</a></tt><tt class="py-op">-</tt><tt id="link-270" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-270', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-271" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-271', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">,</tt><tt id="link-272" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-272', 'y', 'link-72');">y</a></tt><tt class="py-op">-</tt><tt id="link-273" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-273', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-274" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-274', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">)</tt> </tt>
<a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line">            <tt id="link-275" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-275', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-276" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-276', 'x', 'link-70');">x</a></tt><tt class="py-op">+</tt><tt id="link-277" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-277', 'width', 'link-71');">width</a></tt><tt class="py-op">+</tt><tt id="link-278" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-278', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-279" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-279', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">,</tt><tt id="link-280" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-280', 'y', 'link-72');">y</a></tt><tt class="py-op">-</tt><tt id="link-281" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-281', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-282" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-282', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">)</tt> </tt>
<a name="L155"></a><tt class="py-lineno">155</tt>  <tt class="py-line">            <tt id="link-283" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-283', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-284" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-284', 'x', 'link-70');">x</a></tt><tt class="py-op">+</tt><tt id="link-285" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-285', 'width', 'link-71');">width</a></tt><tt class="py-op">+</tt><tt id="link-286" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-286', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-287" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-287', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">,</tt><tt id="link-288" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-288', 'y', 'link-72');">y</a></tt><tt class="py-op">)</tt> </tt>
<a name="L156"></a><tt class="py-lineno">156</tt>  <tt class="py-line">            <tt id="link-289" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-289', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-290" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-290', 'x', 'link-70');">x</a></tt><tt class="py-op">+</tt><tt id="link-291" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-291', 'width', 'link-71');">width</a></tt><tt class="py-op">+</tt><tt id="link-292" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-292', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-293" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-293', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">,</tt><tt id="link-294" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-294', 'y', 'link-72');">y</a></tt><tt class="py-op">+</tt><tt id="link-295" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-295', 'height', 'link-73');">height</a></tt><tt class="py-op">)</tt> </tt>
<a name="L157"></a><tt class="py-lineno">157</tt>  <tt class="py-line">            <tt id="link-296" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-296', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-297" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-297', 'x', 'link-70');">x</a></tt><tt class="py-op">+</tt><tt id="link-298" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-298', 'width', 'link-71');">width</a></tt><tt class="py-op">+</tt><tt id="link-299" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-299', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-300" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-300', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">,</tt><tt id="link-301" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-301', 'y', 'link-72');">y</a></tt><tt class="py-op">+</tt><tt id="link-302" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-302', 'height', 'link-73');">height</a></tt><tt class="py-op">+</tt><tt id="link-303" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-303', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-304" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-304', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">)</tt> </tt>
<a name="L158"></a><tt class="py-lineno">158</tt>  <tt class="py-line">            <tt id="link-305" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-305', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-306" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-306', 'x', 'link-70');">x</a></tt><tt class="py-op">-</tt><tt id="link-307" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-307', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-308" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-308', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">,</tt><tt id="link-309" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-309', 'y', 'link-72');">y</a></tt><tt class="py-op">+</tt><tt id="link-310" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-310', 'height', 'link-73');">height</a></tt><tt class="py-op">+</tt><tt id="link-311" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-311', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-312" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-312', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">)</tt> </tt>
<a name="L159"></a><tt class="py-lineno">159</tt>  <tt class="py-line">            <tt id="link-313" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-313', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-314" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-314', 'x', 'link-70');">x</a></tt><tt class="py-op">-</tt><tt id="link-315" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-315', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-316" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-316', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">,</tt><tt id="link-317" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-317', 'y', 'link-72');">y</a></tt><tt class="py-op">+</tt><tt id="link-318" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-318', 'height', 'link-73');">height</a></tt><tt class="py-op">)</tt> </tt>
<a name="L160"></a><tt class="py-lineno">160</tt>  <tt class="py-line">            <tt id="link-319" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-319', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-320" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-320', 'x', 'link-70');">x</a></tt><tt class="py-op">-</tt><tt id="link-321" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-321', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-322" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-322', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">,</tt><tt id="link-323" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-323', 'y', 'link-72');">y</a></tt><tt class="py-op">)</tt> </tt>
<a name="L161"></a><tt class="py-lineno">161</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt id="link-324" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-324', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-325" class="py-name"><a title="pyprocessing.attribs.strokeJoin
pyprocessing.globs.attrib.strokeJoin" class="py-name" href="#" onclick="return doclink('link-325', 'strokeJoin', 'link-264');">strokeJoin</a></tt> <tt class="py-op">==</tt> <tt id="link-326" class="py-name" targets="Variable pyprocessing.BEVEL=pyprocessing-module.html#BEVEL,Variable pyprocessing.attribs.BEVEL=pyprocessing.attribs-module.html#BEVEL,Variable pyprocessing.colors.BEVEL=pyprocessing.colors-module.html#BEVEL,Variable pyprocessing.config.BEVEL=pyprocessing.config-module.html#BEVEL,Variable pyprocessing.constants.BEVEL=pyprocessing.constants-module.html#BEVEL,Variable pyprocessing.fonts.BEVEL=pyprocessing.fonts-module.html#BEVEL,Variable pyprocessing.globs.BEVEL=pyprocessing.globs-module.html#BEVEL,Variable pyprocessing.lights'.BEVEL=pyprocessing.lights%27-module.html#BEVEL,Variable pyprocessing.materials.BEVEL=pyprocessing.materials-module.html#BEVEL,Variable pyprocessing.pimage.BEVEL=pyprocessing.pimage-module.html#BEVEL,Variable pyprocessing.primitives.BEVEL=pyprocessing.primitives-module.html#BEVEL,Variable pyprocessing.shapes.BEVEL=pyprocessing.shapes-module.html#BEVEL,Variable pyprocessing.transformations.BEVEL=pyprocessing.transformations-module.html#BEVEL"><a title="pyprocessing.BEVEL
pyprocessing.attribs.BEVEL
pyprocessing.colors.BEVEL
pyprocessing.config.BEVEL
pyprocessing.constants.BEVEL
pyprocessing.fonts.BEVEL
pyprocessing.globs.BEVEL
pyprocessing.lights'.BEVEL
pyprocessing.materials.BEVEL
pyprocessing.pimage.BEVEL
pyprocessing.primitives.BEVEL
pyprocessing.shapes.BEVEL
pyprocessing.transformations.BEVEL" class="py-name" href="#" onclick="return doclink('link-326', 'BEVEL', 'link-326');">BEVEL</a></tt><tt class="py-op">:</tt> </tt>
<a name="L162"></a><tt class="py-lineno">162</tt>  <tt class="py-line">            <tt class="py-name">w</tt><tt class="py-op">,</tt><tt id="link-327" class="py-name" targets="Variable pyprocessing.config.f=pyprocessing.config-module.html#f"><a title="pyprocessing.config.f" class="py-name" href="#" onclick="return doclink('link-327', 'f', 'link-327');">f</a></tt><tt class="py-op">,</tt><tt class="py-name">s</tt> <tt class="py-op">=</tt> <tt id="link-328" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-328', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-329" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-329', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">,</tt><tt id="link-330" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-330', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-331" class="py-name"><a title="pyprocessing.globs.attrib.fillColor" class="py-name" href="#" onclick="return doclink('link-331', 'fillColor', 'link-103');">fillColor</a></tt><tt class="py-op">,</tt><tt id="link-332" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-332', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-333" class="py-name"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-333', 'strokeColor', 'link-121');">strokeColor</a></tt> </tt>
<a name="L163"></a><tt class="py-lineno">163</tt>  <tt class="py-line">            <tt id="link-334" class="py-name" targets="Function pyprocessing.attribs.noStroke()=pyprocessing.attribs-module.html#noStroke"><a title="pyprocessing.attribs.noStroke" class="py-name" href="#" onclick="return doclink('link-334', 'noStroke', 'link-334');">noStroke</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L164"></a><tt class="py-lineno">164</tt>  <tt class="py-line">            <tt id="link-335" class="py-name" targets="Function pyprocessing.attribs.fill()=pyprocessing.attribs-module.html#fill"><a title="pyprocessing.attribs.fill" class="py-name" href="#" onclick="return doclink('link-335', 'fill', 'link-335');">fill</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
<a name="L165"></a><tt class="py-lineno">165</tt>  <tt class="py-line">            <tt id="link-336" class="py-name" targets="Function pyprocessing.primitives.triangle()=pyprocessing.primitives-module.html#triangle"><a title="pyprocessing.primitives.triangle" class="py-name" href="#" onclick="return doclink('link-336', 'triangle', 'link-336');">triangle</a></tt><tt class="py-op">(</tt><tt id="link-337" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-337', 'x', 'link-70');">x</a></tt><tt class="py-op">,</tt><tt id="link-338" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-338', 'y', 'link-72');">y</a></tt><tt class="py-op">,</tt><tt id="link-339" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-339', 'x', 'link-70');">x</a></tt><tt class="py-op">,</tt><tt id="link-340" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-340', 'y', 'link-72');">y</a></tt><tt class="py-op">-</tt><tt class="py-name">w</tt><tt class="py-op">,</tt><tt id="link-341" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-341', 'x', 'link-70');">x</a></tt><tt class="py-op">-</tt><tt class="py-name">w</tt><tt class="py-op">,</tt><tt id="link-342" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-342', 'y', 'link-72');">y</a></tt><tt class="py-op">)</tt> </tt>
<a name="L166"></a><tt class="py-lineno">166</tt>  <tt class="py-line">            <tt id="link-343" class="py-name"><a title="pyprocessing.primitives.triangle" class="py-name" href="#" onclick="return doclink('link-343', 'triangle', 'link-336');">triangle</a></tt><tt class="py-op">(</tt><tt id="link-344" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-344', 'x', 'link-70');">x</a></tt><tt class="py-op">+</tt><tt id="link-345" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-345', 'width', 'link-71');">width</a></tt><tt class="py-op">,</tt><tt id="link-346" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-346', 'y', 'link-72');">y</a></tt><tt class="py-op">,</tt><tt id="link-347" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-347', 'x', 'link-70');">x</a></tt><tt class="py-op">+</tt><tt id="link-348" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-348', 'width', 'link-71');">width</a></tt><tt class="py-op">+</tt><tt class="py-name">w</tt><tt class="py-op">,</tt><tt id="link-349" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-349', 'y', 'link-72');">y</a></tt><tt class="py-op">,</tt><tt id="link-350" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-350', 'x', 'link-70');">x</a></tt><tt class="py-op">+</tt><tt id="link-351" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-351', 'width', 'link-71');">width</a></tt><tt class="py-op">,</tt><tt id="link-352" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-352', 'y', 'link-72');">y</a></tt><tt class="py-op">-</tt><tt class="py-name">w</tt><tt class="py-op">)</tt> </tt>
<a name="L167"></a><tt class="py-lineno">167</tt>  <tt class="py-line">            <tt id="link-353" class="py-name"><a title="pyprocessing.primitives.triangle" class="py-name" href="#" onclick="return doclink('link-353', 'triangle', 'link-336');">triangle</a></tt><tt class="py-op">(</tt><tt id="link-354" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-354', 'x', 'link-70');">x</a></tt><tt class="py-op">+</tt><tt id="link-355" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-355', 'width', 'link-71');">width</a></tt><tt class="py-op">,</tt><tt id="link-356" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-356', 'y', 'link-72');">y</a></tt><tt class="py-op">+</tt><tt id="link-357" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-357', 'height', 'link-73');">height</a></tt><tt class="py-op">,</tt><tt id="link-358" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-358', 'x', 'link-70');">x</a></tt><tt class="py-op">+</tt><tt id="link-359" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-359', 'width', 'link-71');">width</a></tt><tt class="py-op">+</tt><tt class="py-name">w</tt><tt class="py-op">,</tt><tt id="link-360" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-360', 'y', 'link-72');">y</a></tt><tt class="py-op">+</tt><tt id="link-361" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-361', 'height', 'link-73');">height</a></tt><tt class="py-op">,</tt><tt id="link-362" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-362', 'x', 'link-70');">x</a></tt><tt class="py-op">+</tt><tt id="link-363" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-363', 'width', 'link-71');">width</a></tt><tt class="py-op">,</tt><tt id="link-364" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-364', 'y', 'link-72');">y</a></tt><tt class="py-op">+</tt><tt id="link-365" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-365', 'height', 'link-73');">height</a></tt><tt class="py-op">+</tt><tt class="py-name">w</tt><tt class="py-op">)</tt> </tt>
<a name="L168"></a><tt class="py-lineno">168</tt>  <tt class="py-line">            <tt id="link-366" class="py-name"><a title="pyprocessing.primitives.triangle" class="py-name" href="#" onclick="return doclink('link-366', 'triangle', 'link-336');">triangle</a></tt><tt class="py-op">(</tt><tt id="link-367" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-367', 'x', 'link-70');">x</a></tt><tt class="py-op">,</tt><tt id="link-368" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-368', 'y', 'link-72');">y</a></tt><tt class="py-op">+</tt><tt id="link-369" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-369', 'height', 'link-73');">height</a></tt><tt class="py-op">,</tt><tt id="link-370" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-370', 'x', 'link-70');">x</a></tt><tt class="py-op">-</tt><tt class="py-name">w</tt><tt class="py-op">,</tt><tt id="link-371" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-371', 'y', 'link-72');">y</a></tt><tt class="py-op">+</tt><tt id="link-372" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-372', 'height', 'link-73');">height</a></tt><tt class="py-op">,</tt><tt id="link-373" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-373', 'x', 'link-70');">x</a></tt><tt class="py-op">,</tt><tt id="link-374" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-374', 'y', 'link-72');">y</a></tt><tt class="py-op">+</tt><tt id="link-375" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-375', 'height', 'link-73');">height</a></tt><tt class="py-op">+</tt><tt class="py-name">w</tt><tt class="py-op">)</tt> </tt>
<a name="L169"></a><tt class="py-lineno">169</tt>  <tt class="py-line">            <tt id="link-376" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-376', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-377" class="py-name"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-377', 'strokeColor', 'link-121');">strokeColor</a></tt> <tt class="py-op">=</tt> <tt class="py-name">s</tt> </tt>
<a name="L170"></a><tt class="py-lineno">170</tt>  <tt class="py-line">            <tt id="link-378" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-378', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-379" class="py-name"><a title="pyprocessing.globs.attrib.fillColor" class="py-name" href="#" onclick="return doclink('link-379', 'fillColor', 'link-103');">fillColor</a></tt> <tt class="py-op">=</tt> <tt id="link-380" class="py-name"><a title="pyprocessing.config.f" class="py-name" href="#" onclick="return doclink('link-380', 'f', 'link-327');">f</a></tt> </tt>
<a name="L171"></a><tt class="py-lineno">171</tt>  <tt class="py-line">            <tt id="link-381" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-381', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-382" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-382', 'strokeWeight', 'link-119');">strokeWeight</a></tt> <tt class="py-op">=</tt> <tt class="py-name">w</tt> </tt>
<a name="L172"></a><tt class="py-lineno">172</tt>  <tt class="py-line">            <tt id="link-383" class="py-name"><a title="pyprocessing.lights'.glBegin" class="py-name" href="#" onclick="return doclink('link-383', 'glBegin', 'link-235');">glBegin</a></tt><tt class="py-op">(</tt><tt id="link-384" class="py-name"><a title="pyprocessing.lights'.GL_LINES" class="py-name" href="#" onclick="return doclink('link-384', 'GL_LINES', 'link-267');">GL_LINES</a></tt><tt class="py-op">)</tt> </tt>
<a name="L173"></a><tt class="py-lineno">173</tt>  <tt class="py-line">            <tt id="link-385" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-385', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-386" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-386', 'x', 'link-70');">x</a></tt><tt class="py-op">,</tt><tt id="link-387" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-387', 'y', 'link-72');">y</a></tt><tt class="py-op">-</tt><tt id="link-388" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-388', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-389" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-389', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">)</tt> </tt>
<a name="L174"></a><tt class="py-lineno">174</tt>  <tt class="py-line">            <tt id="link-390" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-390', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-391" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-391', 'x', 'link-70');">x</a></tt><tt class="py-op">+</tt><tt id="link-392" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-392', 'width', 'link-71');">width</a></tt><tt class="py-op">,</tt><tt id="link-393" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-393', 'y', 'link-72');">y</a></tt><tt class="py-op">-</tt><tt id="link-394" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-394', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-395" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-395', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">)</tt> </tt>
<a name="L175"></a><tt class="py-lineno">175</tt>  <tt class="py-line">            <tt id="link-396" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-396', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-397" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-397', 'x', 'link-70');">x</a></tt><tt class="py-op">+</tt><tt id="link-398" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-398', 'width', 'link-71');">width</a></tt><tt class="py-op">+</tt><tt id="link-399" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-399', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-400" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-400', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">,</tt><tt id="link-401" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-401', 'y', 'link-72');">y</a></tt><tt class="py-op">)</tt> </tt>
<a name="L176"></a><tt class="py-lineno">176</tt>  <tt class="py-line">            <tt id="link-402" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-402', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-403" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-403', 'x', 'link-70');">x</a></tt><tt class="py-op">+</tt><tt id="link-404" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-404', 'width', 'link-71');">width</a></tt><tt class="py-op">+</tt><tt id="link-405" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-405', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-406" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-406', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">,</tt><tt id="link-407" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-407', 'y', 'link-72');">y</a></tt><tt class="py-op">+</tt><tt id="link-408" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-408', 'height', 'link-73');">height</a></tt><tt class="py-op">)</tt> </tt>
<a name="L177"></a><tt class="py-lineno">177</tt>  <tt class="py-line">            <tt id="link-409" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-409', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-410" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-410', 'x', 'link-70');">x</a></tt><tt class="py-op">+</tt><tt id="link-411" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-411', 'width', 'link-71');">width</a></tt><tt class="py-op">,</tt><tt id="link-412" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-412', 'y', 'link-72');">y</a></tt><tt class="py-op">+</tt><tt id="link-413" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-413', 'height', 'link-73');">height</a></tt><tt class="py-op">+</tt><tt id="link-414" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-414', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-415" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-415', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">)</tt> </tt>
<a name="L178"></a><tt class="py-lineno">178</tt>  <tt class="py-line">            <tt id="link-416" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-416', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-417" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-417', 'x', 'link-70');">x</a></tt><tt class="py-op">,</tt><tt id="link-418" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-418', 'y', 'link-72');">y</a></tt><tt class="py-op">+</tt><tt id="link-419" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-419', 'height', 'link-73');">height</a></tt><tt class="py-op">+</tt><tt id="link-420" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-420', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-421" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-421', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">)</tt> </tt>
<a name="L179"></a><tt class="py-lineno">179</tt>  <tt class="py-line">            <tt id="link-422" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-422', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-423" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-423', 'x', 'link-70');">x</a></tt><tt class="py-op">-</tt><tt id="link-424" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-424', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-425" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-425', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">,</tt><tt id="link-426" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-426', 'y', 'link-72');">y</a></tt><tt class="py-op">+</tt><tt id="link-427" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-427', 'height', 'link-73');">height</a></tt><tt class="py-op">)</tt> </tt>
<a name="L180"></a><tt class="py-lineno">180</tt>  <tt class="py-line">            <tt id="link-428" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-428', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-429" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-429', 'x', 'link-70');">x</a></tt><tt class="py-op">-</tt><tt id="link-430" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-430', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-431" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-431', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">,</tt><tt id="link-432" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-432', 'y', 'link-72');">y</a></tt><tt class="py-op">)</tt>  </tt>
<a name="L181"></a><tt class="py-lineno">181</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L182"></a><tt class="py-lineno">182</tt>  <tt class="py-line">            <tt class="py-name">w</tt><tt class="py-op">,</tt><tt id="link-433" class="py-name"><a title="pyprocessing.config.f" class="py-name" href="#" onclick="return doclink('link-433', 'f', 'link-327');">f</a></tt><tt class="py-op">,</tt><tt class="py-name">s</tt> <tt class="py-op">=</tt> <tt id="link-434" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-434', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-435" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-435', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">,</tt><tt id="link-436" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-436', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-437" class="py-name"><a title="pyprocessing.globs.attrib.fillColor" class="py-name" href="#" onclick="return doclink('link-437', 'fillColor', 'link-103');">fillColor</a></tt><tt class="py-op">,</tt><tt id="link-438" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-438', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-439" class="py-name"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-439', 'strokeColor', 'link-121');">strokeColor</a></tt> </tt>
<a name="L183"></a><tt class="py-lineno">183</tt>  <tt class="py-line">            <tt id="link-440" class="py-name" targets="Variable pyprocessing.e=pyprocessing-module.html#e,Variable pyprocessing.shapes.e=pyprocessing.shapes-module.html#e,Variable pyprocessing.transformations.e=pyprocessing.transformations-module.html#e"><a title="pyprocessing.e
pyprocessing.shapes.e
pyprocessing.transformations.e" class="py-name" href="#" onclick="return doclink('link-440', 'e', 'link-440');">e</a></tt> <tt class="py-op">=</tt> <tt id="link-441" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-441', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-442" class="py-name"><a title="pyprocessing.attribs.ellipseMode
pyprocessing.globs.attrib.ellipseMode" class="py-name" href="#" onclick="return doclink('link-442', 'ellipseMode', 'link-68');">ellipseMode</a></tt> </tt>
<a name="L184"></a><tt class="py-lineno">184</tt>  <tt class="py-line">            <tt id="link-443" class="py-name"><a title="pyprocessing.attribs.noStroke" class="py-name" href="#" onclick="return doclink('link-443', 'noStroke', 'link-334');">noStroke</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L185"></a><tt class="py-lineno">185</tt>  <tt class="py-line">            <tt id="link-444" class="py-name"><a title="pyprocessing.attribs.fill" class="py-name" href="#" onclick="return doclink('link-444', 'fill', 'link-335');">fill</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
<a name="L186"></a><tt class="py-lineno">186</tt>  <tt class="py-line">            <tt id="link-445" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-445', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-446" class="py-name"><a title="pyprocessing.attribs.ellipseMode
pyprocessing.globs.attrib.ellipseMode" class="py-name" href="#" onclick="return doclink('link-446', 'ellipseMode', 'link-68');">ellipseMode</a></tt> <tt class="py-op">=</tt> <tt id="link-447" class="py-name"><a title="pyprocessing.constants.CENTER
pyprocessing.lights'.CENTER" class="py-name" href="#" onclick="return doclink('link-447', 'CENTER', 'link-69');">CENTER</a></tt> </tt>
<a name="L187"></a><tt class="py-lineno">187</tt>  <tt class="py-line">            <tt id="link-448" class="py-name" targets="Function pyprocessing.primitives.arc()=pyprocessing.primitives-module.html#arc"><a title="pyprocessing.primitives.arc" class="py-name" href="#" onclick="return doclink('link-448', 'arc', 'link-448');">arc</a></tt><tt class="py-op">(</tt><tt id="link-449" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-449', 'x', 'link-70');">x</a></tt><tt class="py-op">,</tt><tt id="link-450" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-450', 'y', 'link-72');">y</a></tt><tt class="py-op">+</tt><tt id="link-451" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-451', 'height', 'link-73');">height</a></tt><tt class="py-op">,</tt><tt class="py-name">w</tt><tt class="py-op">*</tt><tt class="py-number">2</tt><tt class="py-op">,</tt><tt class="py-name">w</tt><tt class="py-op">*</tt><tt class="py-number">2</tt><tt class="py-op">,</tt><tt id="link-452" class="py-name" targets="Variable pyprocessing.constants.PI=pyprocessing.constants-module.html#PI,Variable pyprocessing.lights'.PI=pyprocessing.lights%27-module.html#PI"><a title="pyprocessing.constants.PI
pyprocessing.lights'.PI" class="py-name" href="#" onclick="return doclink('link-452', 'PI', 'link-452');">PI</a></tt><tt class="py-op">/</tt><tt class="py-number">2</tt><tt class="py-op">,</tt><tt id="link-453" class="py-name"><a title="pyprocessing.constants.PI
pyprocessing.lights'.PI" class="py-name" href="#" onclick="return doclink('link-453', 'PI', 'link-452');">PI</a></tt><tt class="py-op">)</tt> </tt>
<a name="L188"></a><tt class="py-lineno">188</tt>  <tt class="py-line">            <tt id="link-454" class="py-name"><a title="pyprocessing.primitives.arc" class="py-name" href="#" onclick="return doclink('link-454', 'arc', 'link-448');">arc</a></tt><tt class="py-op">(</tt><tt id="link-455" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-455', 'x', 'link-70');">x</a></tt><tt class="py-op">+</tt><tt id="link-456" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-456', 'width', 'link-71');">width</a></tt><tt class="py-op">,</tt><tt id="link-457" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-457', 'y', 'link-72');">y</a></tt><tt class="py-op">+</tt><tt id="link-458" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-458', 'height', 'link-73');">height</a></tt><tt class="py-op">,</tt><tt class="py-name">w</tt><tt class="py-op">*</tt><tt class="py-number">2</tt><tt class="py-op">,</tt><tt class="py-name">w</tt><tt class="py-op">*</tt><tt class="py-number">2</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt id="link-459" class="py-name"><a title="pyprocessing.constants.PI
pyprocessing.lights'.PI" class="py-name" href="#" onclick="return doclink('link-459', 'PI', 'link-452');">PI</a></tt><tt class="py-op">/</tt><tt class="py-number">2</tt><tt class="py-op">)</tt> </tt>
<a name="L189"></a><tt class="py-lineno">189</tt>  <tt class="py-line">            <tt id="link-460" class="py-name"><a title="pyprocessing.primitives.arc" class="py-name" href="#" onclick="return doclink('link-460', 'arc', 'link-448');">arc</a></tt><tt class="py-op">(</tt><tt id="link-461" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-461', 'x', 'link-70');">x</a></tt><tt class="py-op">,</tt><tt id="link-462" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-462', 'y', 'link-72');">y</a></tt><tt class="py-op">,</tt><tt class="py-name">w</tt><tt class="py-op">*</tt><tt class="py-number">2</tt><tt class="py-op">,</tt><tt class="py-name">w</tt><tt class="py-op">*</tt><tt class="py-number">2</tt><tt class="py-op">,</tt><tt id="link-463" class="py-name"><a title="pyprocessing.constants.PI
pyprocessing.lights'.PI" class="py-name" href="#" onclick="return doclink('link-463', 'PI', 'link-452');">PI</a></tt><tt class="py-op">,</tt><tt class="py-number">3</tt><tt class="py-op">*</tt><tt id="link-464" class="py-name"><a title="pyprocessing.constants.PI
pyprocessing.lights'.PI" class="py-name" href="#" onclick="return doclink('link-464', 'PI', 'link-452');">PI</a></tt><tt class="py-op">/</tt><tt class="py-number">2</tt><tt class="py-op">)</tt> </tt>
<a name="L190"></a><tt class="py-lineno">190</tt>  <tt class="py-line">            <tt id="link-465" class="py-name"><a title="pyprocessing.primitives.arc" class="py-name" href="#" onclick="return doclink('link-465', 'arc', 'link-448');">arc</a></tt><tt class="py-op">(</tt><tt id="link-466" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-466', 'x', 'link-70');">x</a></tt><tt class="py-op">+</tt><tt id="link-467" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-467', 'width', 'link-71');">width</a></tt><tt class="py-op">,</tt><tt id="link-468" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-468', 'y', 'link-72');">y</a></tt><tt class="py-op">,</tt><tt class="py-name">w</tt><tt class="py-op">*</tt><tt class="py-number">2</tt><tt class="py-op">,</tt><tt class="py-name">w</tt><tt class="py-op">*</tt><tt class="py-number">2</tt><tt class="py-op">,</tt><tt class="py-number">3</tt><tt class="py-op">*</tt><tt id="link-469" class="py-name"><a title="pyprocessing.constants.PI
pyprocessing.lights'.PI" class="py-name" href="#" onclick="return doclink('link-469', 'PI', 'link-452');">PI</a></tt><tt class="py-op">/</tt><tt class="py-number">2</tt><tt class="py-op">,</tt><tt class="py-number">2</tt><tt class="py-op">*</tt><tt id="link-470" class="py-name"><a title="pyprocessing.constants.PI
pyprocessing.lights'.PI" class="py-name" href="#" onclick="return doclink('link-470', 'PI', 'link-452');">PI</a></tt><tt class="py-op">)</tt> </tt>
<a name="L191"></a><tt class="py-lineno">191</tt>  <tt class="py-line">            <tt id="link-471" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-471', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-472" class="py-name"><a title="pyprocessing.attribs.ellipseMode
pyprocessing.globs.attrib.ellipseMode" class="py-name" href="#" onclick="return doclink('link-472', 'ellipseMode', 'link-68');">ellipseMode</a></tt> <tt class="py-op">=</tt> <tt id="link-473" class="py-name"><a title="pyprocessing.e
pyprocessing.shapes.e
pyprocessing.transformations.e" class="py-name" href="#" onclick="return doclink('link-473', 'e', 'link-440');">e</a></tt> </tt>
<a name="L192"></a><tt class="py-lineno">192</tt>  <tt class="py-line">            <tt id="link-474" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-474', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-475" class="py-name"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-475', 'strokeColor', 'link-121');">strokeColor</a></tt> <tt class="py-op">=</tt> <tt class="py-name">s</tt> </tt>
<a name="L193"></a><tt class="py-lineno">193</tt>  <tt class="py-line">            <tt id="link-476" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-476', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-477" class="py-name"><a title="pyprocessing.globs.attrib.fillColor" class="py-name" href="#" onclick="return doclink('link-477', 'fillColor', 'link-103');">fillColor</a></tt> <tt class="py-op">=</tt> <tt id="link-478" class="py-name"><a title="pyprocessing.config.f" class="py-name" href="#" onclick="return doclink('link-478', 'f', 'link-327');">f</a></tt> </tt>
<a name="L194"></a><tt class="py-lineno">194</tt>  <tt class="py-line">            <tt id="link-479" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-479', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-480" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-480', 'strokeWeight', 'link-119');">strokeWeight</a></tt> <tt class="py-op">=</tt> <tt class="py-name">w</tt> </tt>
<a name="L195"></a><tt class="py-lineno">195</tt>  <tt class="py-line">            <tt id="link-481" class="py-name"><a title="pyprocessing.lights'.glBegin" class="py-name" href="#" onclick="return doclink('link-481', 'glBegin', 'link-235');">glBegin</a></tt><tt class="py-op">(</tt><tt id="link-482" class="py-name"><a title="pyprocessing.lights'.GL_LINES" class="py-name" href="#" onclick="return doclink('link-482', 'GL_LINES', 'link-267');">GL_LINES</a></tt><tt class="py-op">)</tt> </tt>
<a name="L196"></a><tt class="py-lineno">196</tt>  <tt class="py-line">            <tt id="link-483" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-483', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-484" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-484', 'x', 'link-70');">x</a></tt><tt class="py-op">,</tt><tt id="link-485" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-485', 'y', 'link-72');">y</a></tt><tt class="py-op">-</tt><tt id="link-486" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-486', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-487" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-487', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">)</tt> </tt>
<a name="L197"></a><tt class="py-lineno">197</tt>  <tt class="py-line">            <tt id="link-488" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-488', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-489" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-489', 'x', 'link-70');">x</a></tt><tt class="py-op">+</tt><tt id="link-490" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-490', 'width', 'link-71');">width</a></tt><tt class="py-op">,</tt><tt id="link-491" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-491', 'y', 'link-72');">y</a></tt><tt class="py-op">-</tt><tt id="link-492" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-492', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-493" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-493', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">)</tt> </tt>
<a name="L198"></a><tt class="py-lineno">198</tt>  <tt class="py-line">            <tt id="link-494" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-494', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-495" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-495', 'x', 'link-70');">x</a></tt><tt class="py-op">+</tt><tt id="link-496" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-496', 'width', 'link-71');">width</a></tt><tt class="py-op">+</tt><tt id="link-497" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-497', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-498" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-498', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">,</tt><tt id="link-499" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-499', 'y', 'link-72');">y</a></tt><tt class="py-op">)</tt> </tt>
<a name="L199"></a><tt class="py-lineno">199</tt>  <tt class="py-line">            <tt id="link-500" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-500', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-501" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-501', 'x', 'link-70');">x</a></tt><tt class="py-op">+</tt><tt id="link-502" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-502', 'width', 'link-71');">width</a></tt><tt class="py-op">+</tt><tt id="link-503" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-503', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-504" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-504', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">,</tt><tt id="link-505" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-505', 'y', 'link-72');">y</a></tt><tt class="py-op">+</tt><tt id="link-506" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-506', 'height', 'link-73');">height</a></tt><tt class="py-op">)</tt> </tt>
<a name="L200"></a><tt class="py-lineno">200</tt>  <tt class="py-line">            <tt id="link-507" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-507', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-508" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-508', 'x', 'link-70');">x</a></tt><tt class="py-op">+</tt><tt id="link-509" class="py-name"><a title="pyprocessing.globs.screen.width
pyprocessing.pimage.PImage.width" class="py-name" href="#" onclick="return doclink('link-509', 'width', 'link-71');">width</a></tt><tt class="py-op">,</tt><tt id="link-510" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-510', 'y', 'link-72');">y</a></tt><tt class="py-op">+</tt><tt id="link-511" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-511', 'height', 'link-73');">height</a></tt><tt class="py-op">+</tt><tt id="link-512" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-512', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-513" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-513', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">)</tt> </tt>
<a name="L201"></a><tt class="py-lineno">201</tt>  <tt class="py-line">            <tt id="link-514" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-514', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-515" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-515', 'x', 'link-70');">x</a></tt><tt class="py-op">,</tt><tt id="link-516" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-516', 'y', 'link-72');">y</a></tt><tt class="py-op">+</tt><tt id="link-517" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-517', 'height', 'link-73');">height</a></tt><tt class="py-op">+</tt><tt id="link-518" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-518', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-519" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-519', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">)</tt> </tt>
<a name="L202"></a><tt class="py-lineno">202</tt>  <tt class="py-line">            <tt id="link-520" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-520', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-521" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-521', 'x', 'link-70');">x</a></tt><tt class="py-op">-</tt><tt id="link-522" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-522', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-523" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-523', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">,</tt><tt id="link-524" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-524', 'y', 'link-72');">y</a></tt><tt class="py-op">+</tt><tt id="link-525" class="py-name"><a title="pyprocessing.globs.screen.height
pyprocessing.pimage.PImage.height" class="py-name" href="#" onclick="return doclink('link-525', 'height', 'link-73');">height</a></tt><tt class="py-op">)</tt> </tt>
<a name="L203"></a><tt class="py-lineno">203</tt>  <tt class="py-line">            <tt id="link-526" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-526', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt id="link-527" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-527', 'x', 'link-70');">x</a></tt><tt class="py-op">-</tt><tt id="link-528" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-528', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-529" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-529', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">,</tt><tt id="link-530" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-530', 'y', 'link-72');">y</a></tt><tt class="py-op">)</tt>  </tt>
<a name="L204"></a><tt class="py-lineno">204</tt>  <tt class="py-line">        <tt id="link-531" class="py-name"><a title="pyprocessing.lights'.glEnd" class="py-name" href="#" onclick="return doclink('link-531', 'glEnd', 'link-253');">glEnd</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L205"></a><tt class="py-lineno">205</tt>  <tt class="py-line"> </tt>
<a name="quad"></a><div id="quad-def"><a name="L206"></a><tt class="py-lineno">206</tt> <a class="py-toggle" href="#" id="quad-toggle" onclick="return toggle('quad');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.primitives-module.html#quad">quad</a><tt class="py-op">(</tt><tt class="py-param">x0</tt><tt class="py-op">,</tt><tt class="py-param">y0</tt><tt class="py-op">,</tt><tt class="py-param">x1</tt><tt class="py-op">,</tt><tt class="py-param">y1</tt><tt class="py-op">,</tt><tt class="py-param">x2</tt><tt class="py-op">,</tt><tt class="py-param">y2</tt><tt class="py-op">,</tt><tt class="py-param">x3</tt><tt class="py-op">,</tt><tt class="py-param">y3</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="quad-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="quad-expanded"><a name="L207"></a><tt class="py-lineno">207</tt>  <tt class="py-line">    <tt class="py-docstring">"""Draws a 2D quadrilateral with the given coordinates"""</tt> </tt>
<a name="L208"></a><tt class="py-lineno">208</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-532" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-532', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-533" class="py-name"><a title="pyprocessing.globs.attrib.fillColor" class="py-name" href="#" onclick="return doclink('link-533', 'fillColor', 'link-103');">fillColor</a></tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L209"></a><tt class="py-lineno">209</tt>  <tt class="py-line">        <tt id="link-534" class="py-name"><a title="pyprocessing.lights'.glColor4f" class="py-name" href="#" onclick="return doclink('link-534', 'glColor4f', 'link-104');">glColor4f</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt id="link-535" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-535', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-536" class="py-name"><a title="pyprocessing.globs.attrib.fillColor" class="py-name" href="#" onclick="return doclink('link-536', 'fillColor', 'link-103');">fillColor</a></tt><tt class="py-op">)</tt> </tt>
<a name="L210"></a><tt class="py-lineno">210</tt>  <tt class="py-line">        <tt id="link-537" class="py-name"><a title="pyprocessing.primitives._smoothFixHackBegin" class="py-name" href="#" onclick="return doclink('link-537', '_smoothFixHackBegin', 'link-107');">_smoothFixHackBegin</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L211"></a><tt class="py-lineno">211</tt>  <tt class="py-line">        <tt id="link-538" class="py-name"><a title="pyprocessing.lights'.glBegin" class="py-name" href="#" onclick="return doclink('link-538', 'glBegin', 'link-235');">glBegin</a></tt><tt class="py-op">(</tt><tt id="link-539" class="py-name"><a title="pyprocessing.lights'.GL_POLYGON" class="py-name" href="#" onclick="return doclink('link-539', 'GL_POLYGON', 'link-236');">GL_POLYGON</a></tt><tt class="py-op">)</tt> </tt>
<a name="L212"></a><tt class="py-lineno">212</tt>  <tt class="py-line">        <tt id="link-540" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-540', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt class="py-name">x0</tt><tt class="py-op">,</tt><tt class="py-name">y0</tt><tt class="py-op">)</tt> </tt>
<a name="L213"></a><tt class="py-lineno">213</tt>  <tt class="py-line">        <tt id="link-541" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-541', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt class="py-name">x1</tt><tt class="py-op">,</tt><tt class="py-name">y1</tt><tt class="py-op">)</tt> </tt>
<a name="L214"></a><tt class="py-lineno">214</tt>  <tt class="py-line">        <tt id="link-542" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-542', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt class="py-name">x2</tt><tt class="py-op">,</tt><tt class="py-name">y2</tt><tt class="py-op">)</tt> </tt>
<a name="L215"></a><tt class="py-lineno">215</tt>  <tt class="py-line">        <tt id="link-543" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-543', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt class="py-name">x3</tt><tt class="py-op">,</tt><tt class="py-name">y3</tt><tt class="py-op">)</tt> </tt>
<a name="L216"></a><tt class="py-lineno">216</tt>  <tt class="py-line">        <tt id="link-544" class="py-name"><a title="pyprocessing.lights'.glEnd" class="py-name" href="#" onclick="return doclink('link-544', 'glEnd', 'link-253');">glEnd</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L217"></a><tt class="py-lineno">217</tt>  <tt class="py-line">        <tt id="link-545" class="py-name"><a title="pyprocessing.primitives._smoothFixHackBegin" class="py-name" href="#" onclick="return doclink('link-545', '_smoothFixHackBegin', 'link-107');">_smoothFixHackBegin</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L218"></a><tt class="py-lineno">218</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-546" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-546', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-547" class="py-name"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-547', 'strokeColor', 'link-121');">strokeColor</a></tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L219"></a><tt class="py-lineno">219</tt>  <tt class="py-line">        <tt id="link-548" class="py-name"><a title="pyprocessing.lights'.glLineWidth" class="py-name" href="#" onclick="return doclink('link-548', 'glLineWidth', 'link-117');">glLineWidth</a></tt> <tt class="py-op">(</tt><tt id="link-549" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-549', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-550" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-550', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">)</tt> </tt>
<a name="L220"></a><tt class="py-lineno">220</tt>  <tt class="py-line">        <tt id="link-551" class="py-name"><a title="pyprocessing.lights'.glColor4f" class="py-name" href="#" onclick="return doclink('link-551', 'glColor4f', 'link-104');">glColor4f</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt id="link-552" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-552', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-553" class="py-name"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-553', 'strokeColor', 'link-121');">strokeColor</a></tt><tt class="py-op">)</tt> </tt>
<a name="L221"></a><tt class="py-lineno">221</tt>  <tt class="py-line">        <tt id="link-554" class="py-name"><a title="pyprocessing.lights'.glBegin" class="py-name" href="#" onclick="return doclink('link-554', 'glBegin', 'link-235');">glBegin</a></tt><tt class="py-op">(</tt><tt id="link-555" class="py-name" targets="Variable pyprocessing.lights'.GL_LINE_LOOP=pyprocessing.lights%27-module.html#GL_LINE_LOOP"><a title="pyprocessing.lights'.GL_LINE_LOOP" class="py-name" href="#" onclick="return doclink('link-555', 'GL_LINE_LOOP', 'link-555');">GL_LINE_LOOP</a></tt><tt class="py-op">)</tt> </tt>
<a name="L222"></a><tt class="py-lineno">222</tt>  <tt class="py-line">        <tt id="link-556" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-556', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt class="py-name">x0</tt><tt class="py-op">,</tt><tt class="py-name">y0</tt><tt class="py-op">)</tt> </tt>
<a name="L223"></a><tt class="py-lineno">223</tt>  <tt class="py-line">        <tt id="link-557" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-557', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt class="py-name">x1</tt><tt class="py-op">,</tt><tt class="py-name">y1</tt><tt class="py-op">)</tt> </tt>
<a name="L224"></a><tt class="py-lineno">224</tt>  <tt class="py-line">        <tt id="link-558" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-558', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt class="py-name">x2</tt><tt class="py-op">,</tt><tt class="py-name">y2</tt><tt class="py-op">)</tt> </tt>
<a name="L225"></a><tt class="py-lineno">225</tt>  <tt class="py-line">        <tt id="link-559" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-559', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt class="py-name">x3</tt><tt class="py-op">,</tt><tt class="py-name">y3</tt><tt class="py-op">)</tt> </tt>
<a name="L226"></a><tt class="py-lineno">226</tt>  <tt class="py-line">        <tt id="link-560" class="py-name"><a title="pyprocessing.lights'.glEnd" class="py-name" href="#" onclick="return doclink('link-560', 'glEnd', 'link-253');">glEnd</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L227"></a><tt class="py-lineno">227</tt>  <tt class="py-line">         </tt>
<a name="triangle"></a><div id="triangle-def"><a name="L228"></a><tt class="py-lineno">228</tt> <a class="py-toggle" href="#" id="triangle-toggle" onclick="return toggle('triangle');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.primitives-module.html#triangle">triangle</a><tt class="py-op">(</tt><tt class="py-param">x0</tt><tt class="py-op">,</tt><tt class="py-param">y0</tt><tt class="py-op">,</tt><tt class="py-param">x1</tt><tt class="py-op">,</tt><tt class="py-param">y1</tt><tt class="py-op">,</tt><tt class="py-param">x2</tt><tt class="py-op">,</tt><tt class="py-param">y2</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="triangle-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="triangle-expanded"><a name="L229"></a><tt class="py-lineno">229</tt>  <tt class="py-line">    <tt class="py-docstring">"""Draws a 2D triangle with the given coordinates"""</tt> </tt>
<a name="L230"></a><tt class="py-lineno">230</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-561" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-561', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-562" class="py-name"><a title="pyprocessing.globs.attrib.fillColor" class="py-name" href="#" onclick="return doclink('link-562', 'fillColor', 'link-103');">fillColor</a></tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L231"></a><tt class="py-lineno">231</tt>  <tt class="py-line">        <tt id="link-563" class="py-name"><a title="pyprocessing.lights'.glColor4f" class="py-name" href="#" onclick="return doclink('link-563', 'glColor4f', 'link-104');">glColor4f</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt id="link-564" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-564', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-565" class="py-name"><a title="pyprocessing.globs.attrib.fillColor" class="py-name" href="#" onclick="return doclink('link-565', 'fillColor', 'link-103');">fillColor</a></tt><tt class="py-op">)</tt> </tt>
<a name="L232"></a><tt class="py-lineno">232</tt>  <tt class="py-line">        <tt id="link-566" class="py-name"><a title="pyprocessing.lights'.glBegin" class="py-name" href="#" onclick="return doclink('link-566', 'glBegin', 'link-235');">glBegin</a></tt><tt class="py-op">(</tt><tt id="link-567" class="py-name"><a title="pyprocessing.lights'.GL_POLYGON" class="py-name" href="#" onclick="return doclink('link-567', 'GL_POLYGON', 'link-236');">GL_POLYGON</a></tt><tt class="py-op">)</tt> </tt>
<a name="L233"></a><tt class="py-lineno">233</tt>  <tt class="py-line">        <tt id="link-568" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-568', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt class="py-name">x0</tt><tt class="py-op">,</tt><tt class="py-name">y0</tt><tt class="py-op">)</tt> </tt>
<a name="L234"></a><tt class="py-lineno">234</tt>  <tt class="py-line">        <tt id="link-569" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-569', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt class="py-name">x1</tt><tt class="py-op">,</tt><tt class="py-name">y1</tt><tt class="py-op">)</tt> </tt>
<a name="L235"></a><tt class="py-lineno">235</tt>  <tt class="py-line">        <tt id="link-570" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-570', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt class="py-name">x2</tt><tt class="py-op">,</tt><tt class="py-name">y2</tt><tt class="py-op">)</tt> </tt>
<a name="L236"></a><tt class="py-lineno">236</tt>  <tt class="py-line">        <tt id="link-571" class="py-name"><a title="pyprocessing.lights'.glEnd" class="py-name" href="#" onclick="return doclink('link-571', 'glEnd', 'link-253');">glEnd</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L237"></a><tt class="py-lineno">237</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-572" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-572', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-573" class="py-name"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-573', 'strokeColor', 'link-121');">strokeColor</a></tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L238"></a><tt class="py-lineno">238</tt>  <tt class="py-line">        <tt id="link-574" class="py-name"><a title="pyprocessing.lights'.glLineWidth" class="py-name" href="#" onclick="return doclink('link-574', 'glLineWidth', 'link-117');">glLineWidth</a></tt> <tt class="py-op">(</tt><tt id="link-575" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-575', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-576" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-576', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">)</tt> </tt>
<a name="L239"></a><tt class="py-lineno">239</tt>  <tt class="py-line">        <tt id="link-577" class="py-name"><a title="pyprocessing.lights'.glColor4f" class="py-name" href="#" onclick="return doclink('link-577', 'glColor4f', 'link-104');">glColor4f</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt id="link-578" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-578', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-579" class="py-name"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-579', 'strokeColor', 'link-121');">strokeColor</a></tt><tt class="py-op">)</tt> </tt>
<a name="L240"></a><tt class="py-lineno">240</tt>  <tt class="py-line">        <tt id="link-580" class="py-name"><a title="pyprocessing.lights'.glBegin" class="py-name" href="#" onclick="return doclink('link-580', 'glBegin', 'link-235');">glBegin</a></tt><tt class="py-op">(</tt><tt id="link-581" class="py-name"><a title="pyprocessing.lights'.GL_LINE_LOOP" class="py-name" href="#" onclick="return doclink('link-581', 'GL_LINE_LOOP', 'link-555');">GL_LINE_LOOP</a></tt><tt class="py-op">)</tt> </tt>
<a name="L241"></a><tt class="py-lineno">241</tt>  <tt class="py-line">        <tt id="link-582" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-582', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt class="py-name">x0</tt><tt class="py-op">,</tt><tt class="py-name">y0</tt><tt class="py-op">)</tt> </tt>
<a name="L242"></a><tt class="py-lineno">242</tt>  <tt class="py-line">        <tt id="link-583" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-583', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt class="py-name">x1</tt><tt class="py-op">,</tt><tt class="py-name">y1</tt><tt class="py-op">)</tt> </tt>
<a name="L243"></a><tt class="py-lineno">243</tt>  <tt class="py-line">        <tt id="link-584" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-584', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt class="py-name">x2</tt><tt class="py-op">,</tt><tt class="py-name">y2</tt><tt class="py-op">)</tt> </tt>
<a name="L244"></a><tt class="py-lineno">244</tt>  <tt class="py-line">        <tt id="link-585" class="py-name"><a title="pyprocessing.lights'.glEnd" class="py-name" href="#" onclick="return doclink('link-585', 'glEnd', 'link-253');">glEnd</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L245"></a><tt class="py-lineno">245</tt>  <tt class="py-line"> </tt>
<a name="point"></a><div id="point-def"><a name="L246"></a><tt class="py-lineno">246</tt> <a class="py-toggle" href="#" id="point-toggle" onclick="return toggle('point');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.primitives-module.html#point">point</a><tt class="py-op">(</tt><tt class="py-param">x</tt><tt class="py-op">,</tt><tt class="py-param">y</tt><tt class="py-op">,</tt><tt class="py-param">z</tt><tt class="py-op">=</tt><tt class="py-number">0.0</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="point-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="point-expanded"><a name="L247"></a><tt class="py-lineno">247</tt>  <tt class="py-line">    <tt class="py-docstring">"""Draws a point at the given coordinates."""</tt> </tt>
<a name="L248"></a><tt class="py-lineno">248</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-586" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-586', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-587" class="py-name"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-587', 'strokeColor', 'link-121');">strokeColor</a></tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L249"></a><tt class="py-lineno">249</tt>  <tt class="py-line">        <tt id="link-588" class="py-name" targets="Variable pyprocessing.lights'.glPointSize=pyprocessing.lights%27-module.html#glPointSize"><a title="pyprocessing.lights'.glPointSize" class="py-name" href="#" onclick="return doclink('link-588', 'glPointSize', 'link-588');">glPointSize</a></tt> <tt class="py-op">(</tt><tt id="link-589" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-589', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-590" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-590', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">)</tt> </tt>
<a name="L250"></a><tt class="py-lineno">250</tt>  <tt class="py-line">        <tt id="link-591" class="py-name"><a title="pyprocessing.lights'.glColor4f" class="py-name" href="#" onclick="return doclink('link-591', 'glColor4f', 'link-104');">glColor4f</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt id="link-592" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-592', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-593" class="py-name"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-593', 'strokeColor', 'link-121');">strokeColor</a></tt><tt class="py-op">)</tt> </tt>
<a name="L251"></a><tt class="py-lineno">251</tt>  <tt class="py-line">        <tt id="link-594" class="py-name"><a title="pyprocessing.lights'.glBegin" class="py-name" href="#" onclick="return doclink('link-594', 'glBegin', 'link-235');">glBegin</a></tt><tt class="py-op">(</tt><tt id="link-595" class="py-name" targets="Variable pyprocessing.lights'.GL_POINTS=pyprocessing.lights%27-module.html#GL_POINTS"><a title="pyprocessing.lights'.GL_POINTS" class="py-name" href="#" onclick="return doclink('link-595', 'GL_POINTS', 'link-595');">GL_POINTS</a></tt><tt class="py-op">)</tt> </tt>
<a name="L252"></a><tt class="py-lineno">252</tt>  <tt class="py-line">        <tt id="link-596" class="py-name" targets="Variable pyprocessing.lights'.glVertex3f=pyprocessing.lights%27-module.html#glVertex3f"><a title="pyprocessing.lights'.glVertex3f" class="py-name" href="#" onclick="return doclink('link-596', 'glVertex3f', 'link-596');">glVertex3f</a></tt><tt class="py-op">(</tt><tt id="link-597" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-597', 'x', 'link-70');">x</a></tt><tt class="py-op">,</tt><tt id="link-598" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-598', 'y', 'link-72');">y</a></tt><tt class="py-op">,</tt><tt id="link-599" class="py-name" targets="Variable pyprocessing.pvector.PVector.z=pyprocessing.pvector.PVector-class.html#z"><a title="pyprocessing.pvector.PVector.z" class="py-name" href="#" onclick="return doclink('link-599', 'z', 'link-599');">z</a></tt><tt class="py-op">)</tt> </tt>
<a name="L253"></a><tt class="py-lineno">253</tt>  <tt class="py-line">        <tt id="link-600" class="py-name"><a title="pyprocessing.lights'.glEnd" class="py-name" href="#" onclick="return doclink('link-600', 'glEnd', 'link-253');">glEnd</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L254"></a><tt class="py-lineno">254</tt>  <tt class="py-line">         </tt>
<a name="line"></a><div id="line-def"><a name="L255"></a><tt class="py-lineno">255</tt> <a class="py-toggle" href="#" id="line-toggle" onclick="return toggle('line');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.primitives-module.html#line">line</a><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-param">coords</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="line-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="line-expanded"><a name="L256"></a><tt class="py-lineno">256</tt>  <tt class="py-line">    <tt class="py-docstring">"""Draws a line segment in 2D or 3D. Arguments should be one of:</tt> </tt>
<a name="L257"></a><tt class="py-lineno">257</tt>  <tt class="py-line"><tt class="py-docstring">    (x1,y1,z1),(x2,y2,z2)</tt> </tt>
<a name="L258"></a><tt class="py-lineno">258</tt>  <tt class="py-line"><tt class="py-docstring">    (x1,y1),(x2,y2)</tt> </tt>
<a name="L259"></a><tt class="py-lineno">259</tt>  <tt class="py-line"><tt class="py-docstring">    x1,y1,z1,x2,y2,z2</tt> </tt>
<a name="L260"></a><tt class="py-lineno">260</tt>  <tt class="py-line"><tt class="py-docstring">    x1,y1,x2,y2</tt> </tt>
<a name="L261"></a><tt class="py-lineno">261</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="L262"></a><tt class="py-lineno">262</tt>  <tt class="py-line">    <tt class="py-name">n</tt> <tt class="py-op">=</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">coords</tt><tt class="py-op">)</tt> </tt>
<a name="L263"></a><tt class="py-lineno">263</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">n</tt><tt class="py-op">==</tt><tt class="py-number">2</tt><tt class="py-op">:</tt> </tt>
<a name="L264"></a><tt class="py-lineno">264</tt>  <tt class="py-line">        <tt class="py-name">p1</tt><tt class="py-op">,</tt><tt class="py-name">p2</tt> <tt class="py-op">=</tt> <tt class="py-name">coords</tt> </tt>
<a name="L265"></a><tt class="py-lineno">265</tt>  <tt class="py-line">    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L266"></a><tt class="py-lineno">266</tt>  <tt class="py-line">        <tt class="py-name">p1</tt><tt class="py-op">,</tt><tt class="py-name">p2</tt> <tt class="py-op">=</tt> <tt class="py-name">coords</tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-name">n</tt><tt class="py-op">/</tt><tt class="py-number">2</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">coords</tt><tt class="py-op">[</tt><tt class="py-name">n</tt><tt class="py-op">/</tt><tt class="py-number">2</tt><tt class="py-op">:</tt><tt class="py-op">]</tt> </tt>
<a name="L267"></a><tt class="py-lineno">267</tt>  <tt class="py-line">    <tt class="py-keyword">assert</tt> <tt class="py-op">(</tt><tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">p1</tt><tt class="py-op">)</tt><tt class="py-op">==</tt><tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">p2</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L268"></a><tt class="py-lineno">268</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-601" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-601', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-602" class="py-name"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-602', 'strokeColor', 'link-121');">strokeColor</a></tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L269"></a><tt class="py-lineno">269</tt>  <tt class="py-line">        <tt id="link-603" class="py-name"><a title="pyprocessing.lights'.glColor4f" class="py-name" href="#" onclick="return doclink('link-603', 'glColor4f', 'link-104');">glColor4f</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt id="link-604" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-604', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-605" class="py-name"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-605', 'strokeColor', 'link-121');">strokeColor</a></tt><tt class="py-op">)</tt> </tt>
<a name="L270"></a><tt class="py-lineno">270</tt>  <tt class="py-line">        <tt id="link-606" class="py-name"><a title="pyprocessing.lights'.glLineWidth" class="py-name" href="#" onclick="return doclink('link-606', 'glLineWidth', 'link-117');">glLineWidth</a></tt><tt class="py-op">(</tt><tt id="link-607" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-607', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-608" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-608', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">)</tt> </tt>
<a name="L271"></a><tt class="py-lineno">271</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">p1</tt><tt class="py-op">)</tt><tt class="py-op">==</tt><tt class="py-number">2</tt><tt class="py-op">:</tt> </tt>
<a name="L272"></a><tt class="py-lineno">272</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt id="link-609" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-609', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-610" class="py-name" targets="Function pyprocessing.attribs.strokeCap()=pyprocessing.attribs-module.html#strokeCap,Variable pyprocessing.globs.attrib.strokeCap=pyprocessing.globs.attrib-class.html#strokeCap"><a title="pyprocessing.attribs.strokeCap
pyprocessing.globs.attrib.strokeCap" class="py-name" href="#" onclick="return doclink('link-610', 'strokeCap', 'link-610');">strokeCap</a></tt> <tt class="py-op">==</tt> <tt id="link-611" class="py-name" targets="Variable pyprocessing.ROUND=pyprocessing-module.html#ROUND,Variable pyprocessing.attribs.ROUND=pyprocessing.attribs-module.html#ROUND,Variable pyprocessing.colors.ROUND=pyprocessing.colors-module.html#ROUND,Variable pyprocessing.config.ROUND=pyprocessing.config-module.html#ROUND,Variable pyprocessing.constants.ROUND=pyprocessing.constants-module.html#ROUND,Variable pyprocessing.fonts.ROUND=pyprocessing.fonts-module.html#ROUND,Variable pyprocessing.globs.ROUND=pyprocessing.globs-module.html#ROUND,Variable pyprocessing.lights'.ROUND=pyprocessing.lights%27-module.html#ROUND,Variable pyprocessing.materials.ROUND=pyprocessing.materials-module.html#ROUND,Variable pyprocessing.pimage.ROUND=pyprocessing.pimage-module.html#ROUND,Variable pyprocessing.primitives.ROUND=pyprocessing.primitives-module.html#ROUND,Variable pyprocessing.shapes.ROUND=pyprocessing.shapes-module.html#ROUND,Variable pyprocessing.transformations.ROUND=pyprocessing.transformations-module.html#ROUND"><a title="pyprocessing.ROUND
pyprocessing.attribs.ROUND
pyprocessing.colors.ROUND
pyprocessing.config.ROUND
pyprocessing.constants.ROUND
pyprocessing.fonts.ROUND
pyprocessing.globs.ROUND
pyprocessing.lights'.ROUND
pyprocessing.materials.ROUND
pyprocessing.pimage.ROUND
pyprocessing.primitives.ROUND
pyprocessing.shapes.ROUND
pyprocessing.transformations.ROUND" class="py-name" href="#" onclick="return doclink('link-611', 'ROUND', 'link-611');">ROUND</a></tt><tt class="py-op">:</tt> </tt>
<a name="L273"></a><tt class="py-lineno">273</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">p2</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-name">p1</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> <tt class="py-name">angle</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L274"></a><tt class="py-lineno">274</tt>  <tt class="py-line">                <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L275"></a><tt class="py-lineno">275</tt>  <tt class="py-line">                    <tt class="py-name">m</tt> <tt class="py-op">=</tt> <tt class="py-name">float</tt><tt class="py-op">(</tt><tt class="py-name">p2</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">-</tt><tt class="py-name">p1</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">/</tt><tt class="py-op">(</tt><tt class="py-name">p2</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">-</tt><tt class="py-name">p1</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L276"></a><tt class="py-lineno">276</tt>  <tt class="py-line">                    <tt class="py-name">angle</tt> <tt class="py-op">=</tt> <tt class="py-name">math</tt><tt class="py-op">.</tt><tt class="py-name">atan</tt><tt class="py-op">(</tt><tt class="py-name">m</tt><tt class="py-op">)</tt><tt class="py-op">-</tt><tt id="link-612" class="py-name"><a title="pyprocessing.constants.PI
pyprocessing.lights'.PI" class="py-name" href="#" onclick="return doclink('link-612', 'PI', 'link-452');">PI</a></tt><tt class="py-op">/</tt><tt class="py-number">2</tt> </tt>
<a name="L277"></a><tt class="py-lineno">277</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">p2</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">&lt;</tt><tt class="py-name">p1</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> <tt class="py-name">angle</tt> <tt class="py-op">=</tt> <tt class="py-name">angle</tt><tt class="py-op">+</tt><tt id="link-613" class="py-name"><a title="pyprocessing.constants.PI
pyprocessing.lights'.PI" class="py-name" href="#" onclick="return doclink('link-613', 'PI', 'link-452');">PI</a></tt> </tt>
<a name="L278"></a><tt class="py-lineno">278</tt>  <tt class="py-line">                <tt class="py-name">w</tt><tt class="py-op">,</tt><tt id="link-614" class="py-name"><a title="pyprocessing.config.f" class="py-name" href="#" onclick="return doclink('link-614', 'f', 'link-327');">f</a></tt><tt class="py-op">,</tt><tt class="py-name">s</tt> <tt class="py-op">=</tt> <tt id="link-615" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-615', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-616" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-616', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">,</tt><tt id="link-617" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-617', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-618" class="py-name"><a title="pyprocessing.globs.attrib.fillColor" class="py-name" href="#" onclick="return doclink('link-618', 'fillColor', 'link-103');">fillColor</a></tt><tt class="py-op">,</tt><tt id="link-619" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-619', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-620" class="py-name"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-620', 'strokeColor', 'link-121');">strokeColor</a></tt> </tt>
<a name="L279"></a><tt class="py-lineno">279</tt>  <tt class="py-line">                <tt id="link-621" class="py-name"><a title="pyprocessing.e
pyprocessing.shapes.e
pyprocessing.transformations.e" class="py-name" href="#" onclick="return doclink('link-621', 'e', 'link-440');">e</a></tt> <tt class="py-op">=</tt> <tt id="link-622" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-622', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-623" class="py-name"><a title="pyprocessing.attribs.ellipseMode
pyprocessing.globs.attrib.ellipseMode" class="py-name" href="#" onclick="return doclink('link-623', 'ellipseMode', 'link-68');">ellipseMode</a></tt> </tt>
<a name="L280"></a><tt class="py-lineno">280</tt>  <tt class="py-line">                <tt id="link-624" class="py-name"><a title="pyprocessing.attribs.noStroke" class="py-name" href="#" onclick="return doclink('link-624', 'noStroke', 'link-334');">noStroke</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L281"></a><tt class="py-lineno">281</tt>  <tt class="py-line">                <tt id="link-625" class="py-name"><a title="pyprocessing.attribs.fill" class="py-name" href="#" onclick="return doclink('link-625', 'fill', 'link-335');">fill</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
<a name="L282"></a><tt class="py-lineno">282</tt>  <tt class="py-line">                <tt id="link-626" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-626', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-627" class="py-name"><a title="pyprocessing.attribs.ellipseMode
pyprocessing.globs.attrib.ellipseMode" class="py-name" href="#" onclick="return doclink('link-627', 'ellipseMode', 'link-68');">ellipseMode</a></tt> <tt class="py-op">=</tt> <tt id="link-628" class="py-name"><a title="pyprocessing.constants.CENTER
pyprocessing.lights'.CENTER" class="py-name" href="#" onclick="return doclink('link-628', 'CENTER', 'link-69');">CENTER</a></tt> </tt>
<a name="L283"></a><tt class="py-lineno">283</tt>  <tt class="py-line">                <tt id="link-629" class="py-name"><a title="pyprocessing.primitives.arc" class="py-name" href="#" onclick="return doclink('link-629', 'arc', 'link-448');">arc</a></tt><tt class="py-op">(</tt><tt class="py-name">p1</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">p1</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">w</tt><tt class="py-op">,</tt><tt class="py-name">w</tt><tt class="py-op">,</tt><tt class="py-name">angle</tt><tt class="py-op">,</tt><tt class="py-name">angle</tt><tt class="py-op">-</tt><tt id="link-630" class="py-name"><a title="pyprocessing.constants.PI
pyprocessing.lights'.PI" class="py-name" href="#" onclick="return doclink('link-630', 'PI', 'link-452');">PI</a></tt><tt class="py-op">)</tt> </tt>
<a name="L284"></a><tt class="py-lineno">284</tt>  <tt class="py-line">                <tt id="link-631" class="py-name"><a title="pyprocessing.primitives.arc" class="py-name" href="#" onclick="return doclink('link-631', 'arc', 'link-448');">arc</a></tt><tt class="py-op">(</tt><tt class="py-name">p2</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">p2</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">w</tt><tt class="py-op">,</tt><tt class="py-name">w</tt><tt class="py-op">,</tt><tt class="py-name">angle</tt><tt class="py-op">,</tt><tt class="py-name">angle</tt><tt class="py-op">+</tt><tt id="link-632" class="py-name"><a title="pyprocessing.constants.PI
pyprocessing.lights'.PI" class="py-name" href="#" onclick="return doclink('link-632', 'PI', 'link-452');">PI</a></tt><tt class="py-op">)</tt> </tt>
<a name="L285"></a><tt class="py-lineno">285</tt>  <tt class="py-line">                <tt id="link-633" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-633', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-634" class="py-name"><a title="pyprocessing.attribs.ellipseMode
pyprocessing.globs.attrib.ellipseMode" class="py-name" href="#" onclick="return doclink('link-634', 'ellipseMode', 'link-68');">ellipseMode</a></tt> <tt class="py-op">=</tt> <tt id="link-635" class="py-name"><a title="pyprocessing.e
pyprocessing.shapes.e
pyprocessing.transformations.e" class="py-name" href="#" onclick="return doclink('link-635', 'e', 'link-440');">e</a></tt> </tt>
<a name="L286"></a><tt class="py-lineno">286</tt>  <tt class="py-line">                <tt id="link-636" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-636', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-637" class="py-name"><a title="pyprocessing.globs.attrib.fillColor" class="py-name" href="#" onclick="return doclink('link-637', 'fillColor', 'link-103');">fillColor</a></tt> <tt class="py-op">=</tt> <tt id="link-638" class="py-name"><a title="pyprocessing.config.f" class="py-name" href="#" onclick="return doclink('link-638', 'f', 'link-327');">f</a></tt> </tt>
<a name="L287"></a><tt class="py-lineno">287</tt>  <tt class="py-line">                <tt id="link-639" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-639', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-640" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-640', 'strokeWeight', 'link-119');">strokeWeight</a></tt> <tt class="py-op">=</tt> <tt class="py-name">w</tt> </tt>
<a name="L288"></a><tt class="py-lineno">288</tt>  <tt class="py-line">                <tt id="link-641" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-641', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-642" class="py-name"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-642', 'strokeColor', 'link-121');">strokeColor</a></tt> <tt class="py-op">=</tt> <tt class="py-name">s</tt> </tt>
<a name="L289"></a><tt class="py-lineno">289</tt>  <tt class="py-line">                <tt id="link-643" class="py-name"><a title="pyprocessing.lights'.glBegin" class="py-name" href="#" onclick="return doclink('link-643', 'glBegin', 'link-235');">glBegin</a></tt><tt class="py-op">(</tt><tt id="link-644" class="py-name"><a title="pyprocessing.lights'.GL_LINES" class="py-name" href="#" onclick="return doclink('link-644', 'GL_LINES', 'link-267');">GL_LINES</a></tt><tt class="py-op">)</tt> </tt>
<a name="L290"></a><tt class="py-lineno">290</tt>  <tt class="py-line">                <tt id="link-645" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-645', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-name">p1</tt><tt class="py-op">)</tt> </tt>
<a name="L291"></a><tt class="py-lineno">291</tt>  <tt class="py-line">                <tt id="link-646" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-646', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-name">p2</tt><tt class="py-op">)</tt> </tt>
<a name="L292"></a><tt class="py-lineno">292</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt id="link-647" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-647', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-648" class="py-name"><a title="pyprocessing.attribs.strokeCap
pyprocessing.globs.attrib.strokeCap" class="py-name" href="#" onclick="return doclink('link-648', 'strokeCap', 'link-610');">strokeCap</a></tt> <tt class="py-op">==</tt> <tt id="link-649" class="py-name" targets="Variable pyprocessing.PROJECT=pyprocessing-module.html#PROJECT,Variable pyprocessing.attribs.PROJECT=pyprocessing.attribs-module.html#PROJECT,Variable pyprocessing.colors.PROJECT=pyprocessing.colors-module.html#PROJECT,Variable pyprocessing.config.PROJECT=pyprocessing.config-module.html#PROJECT,Variable pyprocessing.constants.PROJECT=pyprocessing.constants-module.html#PROJECT,Variable pyprocessing.fonts.PROJECT=pyprocessing.fonts-module.html#PROJECT,Variable pyprocessing.globs.PROJECT=pyprocessing.globs-module.html#PROJECT,Variable pyprocessing.lights'.PROJECT=pyprocessing.lights%27-module.html#PROJECT,Variable pyprocessing.materials.PROJECT=pyprocessing.materials-module.html#PROJECT,Variable pyprocessing.pimage.PROJECT=pyprocessing.pimage-module.html#PROJECT,Variable pyprocessing.primitives.PROJECT=pyprocessing.primitives-module.html#PROJECT,Variable pyprocessing.shapes.PROJECT=pyprocessing.shapes-module.html#PROJECT,Variable pyprocessing.transformations.PROJECT=pyprocessing.transformations-module.html#PROJECT"><a title="pyprocessing.PROJECT
pyprocessing.attribs.PROJECT
pyprocessing.colors.PROJECT
pyprocessing.config.PROJECT
pyprocessing.constants.PROJECT
pyprocessing.fonts.PROJECT
pyprocessing.globs.PROJECT
pyprocessing.lights'.PROJECT
pyprocessing.materials.PROJECT
pyprocessing.pimage.PROJECT
pyprocessing.primitives.PROJECT
pyprocessing.shapes.PROJECT
pyprocessing.transformations.PROJECT" class="py-name" href="#" onclick="return doclink('link-649', 'PROJECT', 'link-649');">PROJECT</a></tt><tt class="py-op">:</tt> </tt>
<a name="L293"></a><tt class="py-lineno">293</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">p2</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-name">p1</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L294"></a><tt class="py-lineno">294</tt>  <tt class="py-line">                    <tt id="link-650" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-650', 'x', 'link-70');">x</a></tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L295"></a><tt class="py-lineno">295</tt>  <tt class="py-line">                    <tt id="link-651" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-651', 'y', 'link-72');">y</a></tt> <tt class="py-op">=</tt> <tt id="link-652" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-652', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-653" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-653', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt> </tt>
<a name="L296"></a><tt class="py-lineno">296</tt>  <tt class="py-line">                <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L297"></a><tt class="py-lineno">297</tt>  <tt class="py-line">                    <tt class="py-name">m</tt> <tt class="py-op">=</tt> <tt class="py-name">float</tt><tt class="py-op">(</tt><tt class="py-name">p2</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">-</tt><tt class="py-name">p1</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">/</tt><tt class="py-op">(</tt><tt class="py-name">p2</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">-</tt><tt class="py-name">p1</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L298"></a><tt class="py-lineno">298</tt>  <tt class="py-line">                    <tt id="link-654" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-654', 'x', 'link-70');">x</a></tt> <tt class="py-op">=</tt> <tt id="link-655" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-655', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-656" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-656', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">/</tt><tt class="py-op">(</tt><tt class="py-number">2</tt><tt class="py-op">*</tt><tt class="py-name">math</tt><tt class="py-op">.</tt><tt class="py-name">sqrt</tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">+</tt><tt class="py-name">m</tt><tt class="py-op">**</tt><tt class="py-number">2</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L299"></a><tt class="py-lineno">299</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt class="py-name">p2</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">&lt;</tt><tt class="py-name">p1</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> <tt id="link-657" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-657', 'x', 'link-70');">x</a></tt> <tt class="py-op">=</tt> <tt class="py-op">-</tt><tt id="link-658" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-658', 'x', 'link-70');">x</a></tt> </tt>
<a name="L300"></a><tt class="py-lineno">300</tt>  <tt class="py-line">                    <tt id="link-659" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-659', 'y', 'link-72');">y</a></tt> <tt class="py-op">=</tt> <tt id="link-660" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-660', 'x', 'link-70');">x</a></tt><tt class="py-op">*</tt><tt class="py-name">m</tt> </tt>
<a name="L301"></a><tt class="py-lineno">301</tt>  <tt class="py-line">                <tt id="link-661" class="py-name"><a title="pyprocessing.lights'.glBegin" class="py-name" href="#" onclick="return doclink('link-661', 'glBegin', 'link-235');">glBegin</a></tt><tt class="py-op">(</tt><tt id="link-662" class="py-name"><a title="pyprocessing.lights'.GL_LINES" class="py-name" href="#" onclick="return doclink('link-662', 'GL_LINES', 'link-267');">GL_LINES</a></tt><tt class="py-op">)</tt> </tt>
<a name="L302"></a><tt class="py-lineno">302</tt>  <tt class="py-line">                <tt id="link-663" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-663', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt class="py-name">p1</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">-</tt><tt id="link-664" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-664', 'x', 'link-70');">x</a></tt><tt class="py-op">,</tt><tt class="py-name">p1</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">-</tt><tt id="link-665" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-665', 'y', 'link-72');">y</a></tt><tt class="py-op">)</tt> </tt>
<a name="L303"></a><tt class="py-lineno">303</tt>  <tt class="py-line">                <tt id="link-666" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-666', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt class="py-name">p2</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt id="link-667" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-667', 'x', 'link-70');">x</a></tt><tt class="py-op">,</tt><tt class="py-name">p2</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt id="link-668" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-668', 'y', 'link-72');">y</a></tt><tt class="py-op">)</tt> </tt>
<a name="L304"></a><tt class="py-lineno">304</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L305"></a><tt class="py-lineno">305</tt>  <tt class="py-line">                <tt id="link-669" class="py-name"><a title="pyprocessing.lights'.glBegin" class="py-name" href="#" onclick="return doclink('link-669', 'glBegin', 'link-235');">glBegin</a></tt><tt class="py-op">(</tt><tt id="link-670" class="py-name"><a title="pyprocessing.lights'.GL_LINES" class="py-name" href="#" onclick="return doclink('link-670', 'GL_LINES', 'link-267');">GL_LINES</a></tt><tt class="py-op">)</tt> </tt>
<a name="L306"></a><tt class="py-lineno">306</tt>  <tt class="py-line">                <tt id="link-671" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-671', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-name">p1</tt><tt class="py-op">)</tt> </tt>
<a name="L307"></a><tt class="py-lineno">307</tt>  <tt class="py-line">                <tt id="link-672" class="py-name"><a title="pyprocessing.lights'.glVertex2f" class="py-name" href="#" onclick="return doclink('link-672', 'glVertex2f', 'link-237');">glVertex2f</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-name">p2</tt><tt class="py-op">)</tt> </tt>
<a name="L308"></a><tt class="py-lineno">308</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L309"></a><tt class="py-lineno">309</tt>  <tt class="py-line">            <tt id="link-673" class="py-name"><a title="pyprocessing.lights'.glBegin" class="py-name" href="#" onclick="return doclink('link-673', 'glBegin', 'link-235');">glBegin</a></tt><tt class="py-op">(</tt><tt id="link-674" class="py-name"><a title="pyprocessing.lights'.GL_LINES" class="py-name" href="#" onclick="return doclink('link-674', 'GL_LINES', 'link-267');">GL_LINES</a></tt><tt class="py-op">)</tt> </tt>
<a name="L310"></a><tt class="py-lineno">310</tt>  <tt class="py-line">            <tt id="link-675" class="py-name"><a title="pyprocessing.lights'.glVertex3f" class="py-name" href="#" onclick="return doclink('link-675', 'glVertex3f', 'link-596');">glVertex3f</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-name">p1</tt><tt class="py-op">)</tt> </tt>
<a name="L311"></a><tt class="py-lineno">311</tt>  <tt class="py-line">            <tt id="link-676" class="py-name"><a title="pyprocessing.lights'.glVertex3f" class="py-name" href="#" onclick="return doclink('link-676', 'glVertex3f', 'link-596');">glVertex3f</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-name">p2</tt><tt class="py-op">)</tt> </tt>
<a name="L312"></a><tt class="py-lineno">312</tt>  <tt class="py-line">        <tt id="link-677" class="py-name"><a title="pyprocessing.lights'.glEnd" class="py-name" href="#" onclick="return doclink('link-677', 'glEnd', 'link-253');">glEnd</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L313"></a><tt class="py-lineno">313</tt>  <tt class="py-line"> </tt>
<a name="box"></a><div id="box-def"><a name="L314"></a><tt class="py-lineno">314</tt> <a class="py-toggle" href="#" id="box-toggle" onclick="return toggle('box');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.primitives-module.html#box">box</a><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="box-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="box-expanded"><a name="L315"></a><tt class="py-lineno">315</tt>  <tt class="py-line">    <tt class="py-docstring">"""Draws a box centered on the origin. Arguments:</tt> </tt>
<a name="L316"></a><tt class="py-lineno">316</tt>  <tt class="py-line"><tt class="py-docstring">    (size) or </tt> </tt>
<a name="L317"></a><tt class="py-lineno">317</tt>  <tt class="py-line"><tt class="py-docstring">    (sizex, sizey, sizez)"""</tt> </tt>
<a name="L318"></a><tt class="py-lineno">318</tt>  <tt class="py-line">     </tt>
<a name="L319"></a><tt class="py-lineno">319</tt>  <tt class="py-line">    <tt class="py-keyword">def</tt> <tt class="py-def-name">cubeFillList</tt> <tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L320"></a><tt class="py-lineno">320</tt>  <tt class="py-line">        <tt class="py-docstring">"Creates a vertex list for drawing a unit cube in filled mode."</tt> </tt>
<a name="L321"></a><tt class="py-lineno">321</tt>  <tt class="py-line">        <tt class="py-name">v</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L322"></a><tt class="py-lineno">322</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt id="link-678" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-678', 'x', 'link-70');">x</a></tt> <tt class="py-keyword">in</tt> <tt class="py-op">-</tt><tt class="py-number">1.0</tt><tt class="py-op">,</tt><tt class="py-number">1.0</tt><tt class="py-op">:</tt>  </tt>
<a name="L323"></a><tt class="py-lineno">323</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt id="link-679" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-679', 'y', 'link-72');">y</a></tt> <tt class="py-keyword">in</tt> <tt class="py-op">-</tt><tt class="py-number">1.0</tt><tt class="py-op">,</tt><tt class="py-number">1.0</tt><tt class="py-op">:</tt> </tt>
<a name="L324"></a><tt class="py-lineno">324</tt>  <tt class="py-line">                <tt class="py-keyword">for</tt> <tt id="link-680" class="py-name"><a title="pyprocessing.pvector.PVector.z" class="py-name" href="#" onclick="return doclink('link-680', 'z', 'link-599');">z</a></tt> <tt class="py-keyword">in</tt> <tt class="py-op">-</tt><tt class="py-number">1.0</tt><tt class="py-op">,</tt><tt class="py-number">1.0</tt><tt class="py-op">:</tt> </tt>
<a name="L325"></a><tt class="py-lineno">325</tt>  <tt class="py-line">                    <tt class="py-name">v</tt><tt class="py-op">+=</tt><tt class="py-op">[</tt><tt class="py-op">(</tt><tt id="link-681" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-681', 'x', 'link-70');">x</a></tt><tt class="py-op">,</tt><tt id="link-682" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-682', 'y', 'link-72');">y</a></tt><tt class="py-op">,</tt><tt id="link-683" class="py-name"><a title="pyprocessing.pvector.PVector.z" class="py-name" href="#" onclick="return doclink('link-683', 'z', 'link-599');">z</a></tt><tt class="py-op">)</tt><tt class="py-op">]</tt> </tt>
<a name="L326"></a><tt class="py-lineno">326</tt>  <tt class="py-line">        <tt class="py-name">p</tt><tt class="py-op">,</tt><tt class="py-name">n</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-op">[</tt><tt class="py-op">]</tt>  </tt>
<a name="L327"></a><tt class="py-lineno">327</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt id="link-684" class="py-name"><a title="pyprocessing.config.f" class="py-name" href="#" onclick="return doclink('link-684', 'f', 'link-327');">f</a></tt> <tt class="py-keyword">in</tt> <tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">3</tt><tt class="py-op">,</tt><tt class="py-number">2</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">5</tt><tt class="py-op">,</tt><tt class="py-number">4</tt><tt class="py-op">,</tt><tt class="py-number">6</tt><tt class="py-op">,</tt><tt class="py-number">7</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">5</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">4</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">2</tt><tt class="py-op">,</tt><tt class="py-number">3</tt><tt class="py-op">,</tt><tt class="py-number">7</tt><tt class="py-op">,</tt><tt class="py-number">6</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">2</tt><tt class="py-op">,</tt><tt class="py-number">6</tt><tt class="py-op">,</tt><tt class="py-number">4</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">5</tt><tt class="py-op">,</tt><tt class="py-number">7</tt><tt class="py-op">,</tt><tt class="py-number">3</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L328"></a><tt class="py-lineno">328</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">fv</tt> <tt class="py-keyword">in</tt> <tt id="link-685" class="py-name"><a title="pyprocessing.config.f" class="py-name" href="#" onclick="return doclink('link-685', 'f', 'link-327');">f</a></tt><tt class="py-op">:</tt> <tt class="py-name">p</tt><tt class="py-op">+=</tt><tt class="py-name">v</tt><tt class="py-op">[</tt><tt class="py-name">fv</tt><tt class="py-op">]</tt> </tt>
<a name="L329"></a><tt class="py-lineno">329</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">fn</tt> <tt class="py-keyword">in</tt> <tt class="py-op">(</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L330"></a><tt class="py-lineno">330</tt>  <tt class="py-line">            <tt class="py-name">n</tt> <tt class="py-op">+=</tt> <tt class="py-name">fn</tt><tt class="py-op">*</tt><tt class="py-number">4</tt> </tt>
<a name="L331"></a><tt class="py-lineno">331</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">pyglet</tt><tt class="py-op">.</tt><tt class="py-name">graphics</tt><tt class="py-op">.</tt><tt class="py-name">vertex_list</tt><tt class="py-op">(</tt><tt class="py-number">24</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-string">'v3f'</tt><tt class="py-op">,</tt> <tt class="py-name">p</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-string">'n3f'</tt><tt class="py-op">,</tt> <tt class="py-name">n</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L332"></a><tt class="py-lineno">332</tt>  <tt class="py-line"> </tt>
<a name="L333"></a><tt class="py-lineno">333</tt>  <tt class="py-line">    <tt class="py-name">n</tt> <tt class="py-op">=</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">)</tt> </tt>
<a name="L334"></a><tt class="py-lineno">334</tt>  <tt class="py-line">    <tt class="py-keyword">assert</tt><tt class="py-op">(</tt><tt class="py-name">n</tt><tt class="py-op">==</tt><tt class="py-number">1</tt> <tt class="py-keyword">or</tt> <tt class="py-name">n</tt><tt class="py-op">==</tt><tt class="py-number">3</tt><tt class="py-op">)</tt> </tt>
<a name="L335"></a><tt class="py-lineno">335</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-name">n</tt><tt class="py-op">==</tt><tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L336"></a><tt class="py-lineno">336</tt>  <tt class="py-line">        <tt class="py-name">dx</tt><tt class="py-op">=</tt><tt class="py-name">dy</tt><tt class="py-op">=</tt><tt class="py-name">dz</tt><tt class="py-op">=</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt> </tt>
<a name="L337"></a><tt class="py-lineno">337</tt>  <tt class="py-line">    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L338"></a><tt class="py-lineno">338</tt>  <tt class="py-line">        <tt class="py-name">dx</tt><tt class="py-op">,</tt><tt class="py-name">dy</tt><tt class="py-op">,</tt><tt class="py-name">dz</tt><tt class="py-op">=</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">,</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt><tt class="py-op">,</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt><tt class="py-op">/</tt><tt class="py-number">2.0</tt> </tt>
<a name="L339"></a><tt class="py-lineno">339</tt>  <tt class="py-line">    <tt class="py-name">v</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L340"></a><tt class="py-lineno">340</tt>  <tt class="py-line">    <tt class="py-keyword">for</tt> <tt id="link-686" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-686', 'x', 'link-70');">x</a></tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-name">dx</tt><tt class="py-op">,</tt><tt class="py-name">dx</tt><tt class="py-op">]</tt><tt class="py-op">:</tt>  </tt>
<a name="L341"></a><tt class="py-lineno">341</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt id="link-687" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-687', 'y', 'link-72');">y</a></tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-name">dy</tt><tt class="py-op">,</tt><tt class="py-name">dy</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L342"></a><tt class="py-lineno">342</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt id="link-688" class="py-name"><a title="pyprocessing.pvector.PVector.z" class="py-name" href="#" onclick="return doclink('link-688', 'z', 'link-599');">z</a></tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-name">dz</tt><tt class="py-op">,</tt><tt class="py-name">dz</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L343"></a><tt class="py-lineno">343</tt>  <tt class="py-line">                <tt class="py-name">v</tt><tt class="py-op">+=</tt><tt class="py-op">[</tt><tt class="py-op">(</tt><tt id="link-689" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-689', 'x', 'link-70');">x</a></tt><tt class="py-op">,</tt><tt id="link-690" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-690', 'y', 'link-72');">y</a></tt><tt class="py-op">,</tt><tt id="link-691" class="py-name"><a title="pyprocessing.pvector.PVector.z" class="py-name" href="#" onclick="return doclink('link-691', 'z', 'link-599');">z</a></tt><tt class="py-op">)</tt><tt class="py-op">]</tt> </tt>
<a name="L344"></a><tt class="py-lineno">344</tt>  <tt class="py-line">    <tt class="py-name">faces</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">3</tt><tt class="py-op">,</tt><tt class="py-number">2</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">5</tt><tt class="py-op">,</tt><tt class="py-number">4</tt><tt class="py-op">,</tt><tt class="py-number">6</tt><tt class="py-op">,</tt><tt class="py-number">7</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">5</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">4</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">2</tt><tt class="py-op">,</tt><tt class="py-number">3</tt><tt class="py-op">,</tt><tt class="py-number">7</tt><tt class="py-op">,</tt><tt class="py-number">6</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">2</tt><tt class="py-op">,</tt><tt class="py-number">6</tt><tt class="py-op">,</tt><tt class="py-number">4</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">5</tt><tt class="py-op">,</tt><tt class="py-number">7</tt><tt class="py-op">,</tt><tt class="py-number">3</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> </tt>
<a name="L345"></a><tt class="py-lineno">345</tt>  <tt class="py-line">    <tt class="py-name">normals</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">(</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> </tt>
<a name="L346"></a><tt class="py-lineno">346</tt>  <tt class="py-line">    <tt id="link-692" class="py-name"><a title="pyprocessing.lights'.glPushAttrib" class="py-name" href="#" onclick="return doclink('link-692', 'glPushAttrib', 'link-112');">glPushAttrib</a></tt><tt class="py-op">(</tt><tt id="link-693" class="py-name"><a title="pyprocessing.lights'.GL_POLYGON_BIT" class="py-name" href="#" onclick="return doclink('link-693', 'GL_POLYGON_BIT', 'link-113');">GL_POLYGON_BIT</a></tt><tt class="py-op">)</tt> </tt>
<a name="L347"></a><tt class="py-lineno">347</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-694" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-694', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-695" class="py-name"><a title="pyprocessing.globs.attrib.fillColor" class="py-name" href="#" onclick="return doclink('link-695', 'fillColor', 'link-103');">fillColor</a></tt><tt class="py-op">!=</tt><tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L348"></a><tt class="py-lineno">348</tt>  <tt class="py-line">        <tt id="link-696" class="py-name" targets="Variable pyprocessing.lights'.glEnable=pyprocessing.lights%27-module.html#glEnable"><a title="pyprocessing.lights'.glEnable" class="py-name" href="#" onclick="return doclink('link-696', 'glEnable', 'link-696');">glEnable</a></tt><tt class="py-op">(</tt><tt id="link-697" class="py-name" targets="Variable pyprocessing.lights'.GL_POLYGON_OFFSET_FILL=pyprocessing.lights%27-module.html#GL_POLYGON_OFFSET_FILL"><a title="pyprocessing.lights'.GL_POLYGON_OFFSET_FILL" class="py-name" href="#" onclick="return doclink('link-697', 'GL_POLYGON_OFFSET_FILL', 'link-697');">GL_POLYGON_OFFSET_FILL</a></tt><tt class="py-op">)</tt> </tt>
<a name="L349"></a><tt class="py-lineno">349</tt>  <tt class="py-line">        <tt id="link-698" class="py-name" targets="Variable pyprocessing.lights'.glPolygonOffset=pyprocessing.lights%27-module.html#glPolygonOffset"><a title="pyprocessing.lights'.glPolygonOffset" class="py-name" href="#" onclick="return doclink('link-698', 'glPolygonOffset', 'link-698');">glPolygonOffset</a></tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L350"></a><tt class="py-lineno">350</tt>  <tt class="py-line">        <tt id="link-699" class="py-name"><a title="pyprocessing.lights'.glColor4f" class="py-name" href="#" onclick="return doclink('link-699', 'glColor4f', 'link-104');">glColor4f</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt id="link-700" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-700', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-701" class="py-name"><a title="pyprocessing.globs.attrib.fillColor" class="py-name" href="#" onclick="return doclink('link-701', 'fillColor', 'link-103');">fillColor</a></tt><tt class="py-op">)</tt> </tt>
<a name="L351"></a><tt class="py-lineno">351</tt>  <tt class="py-line">        <tt id="link-702" class="py-name"><a title="pyprocessing.primitives._smoothFixHackBegin" class="py-name" href="#" onclick="return doclink('link-702', '_smoothFixHackBegin', 'link-107');">_smoothFixHackBegin</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L352"></a><tt class="py-lineno">352</tt>  <tt class="py-line"> </tt>
<a name="L353"></a><tt class="py-lineno">353</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-703" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-703', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-704" class="py-name" targets="Variable pyprocessing.globs.shape.cubeFillVL=pyprocessing.globs.shape-class.html#cubeFillVL"><a title="pyprocessing.globs.shape.cubeFillVL" class="py-name" href="#" onclick="return doclink('link-704', 'cubeFillVL', 'link-704');">cubeFillVL</a></tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> <tt id="link-705" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-705', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-706" class="py-name"><a title="pyprocessing.globs.shape.cubeFillVL" class="py-name" href="#" onclick="return doclink('link-706', 'cubeFillVL', 'link-704');">cubeFillVL</a></tt> <tt class="py-op">=</tt> <tt class="py-name">cubeFillList</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L354"></a><tt class="py-lineno">354</tt>  <tt class="py-line">        <tt class="py-comment"># Assumes current matrix mode is ModelView</tt> </tt>
<a name="L355"></a><tt class="py-lineno">355</tt>  <tt class="py-line"><tt class="py-comment"></tt>        <tt id="link-707" class="py-name"><a title="pyprocessing.lights'.glPushMatrix" class="py-name" href="#" onclick="return doclink('link-707', 'glPushMatrix', 'link-94');">glPushMatrix</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L356"></a><tt class="py-lineno">356</tt>  <tt class="py-line">        <tt id="link-708" class="py-name"><a title="pyprocessing.lights'.glScalef" class="py-name" href="#" onclick="return doclink('link-708', 'glScalef', 'link-98');">glScalef</a></tt><tt class="py-op">(</tt><tt class="py-name">dx</tt><tt class="py-op">,</tt><tt class="py-name">dy</tt><tt class="py-op">,</tt><tt class="py-name">dz</tt><tt class="py-op">)</tt> </tt>
<a name="L357"></a><tt class="py-lineno">357</tt>  <tt class="py-line">        <tt id="link-709" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-709', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-710" class="py-name"><a title="pyprocessing.globs.shape.cubeFillVL" class="py-name" href="#" onclick="return doclink('link-710', 'cubeFillVL', 'link-704');">cubeFillVL</a></tt><tt class="py-op">.</tt><tt class="py-name">draw</tt><tt class="py-op">(</tt><tt class="py-name">pyglet</tt><tt class="py-op">.</tt><tt class="py-name">gl</tt><tt class="py-op">.</tt><tt id="link-711" class="py-name" targets="Variable pyprocessing.lights'.GL_QUADS=pyprocessing.lights%27-module.html#GL_QUADS"><a title="pyprocessing.lights'.GL_QUADS" class="py-name" href="#" onclick="return doclink('link-711', 'GL_QUADS', 'link-711');">GL_QUADS</a></tt><tt class="py-op">)</tt> </tt>
<a name="L358"></a><tt class="py-lineno">358</tt>  <tt class="py-line">        <tt id="link-712" class="py-name"><a title="pyprocessing.lights'.glPopMatrix" class="py-name" href="#" onclick="return doclink('link-712', 'glPopMatrix', 'link-129');">glPopMatrix</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L359"></a><tt class="py-lineno">359</tt>  <tt class="py-line">         </tt>
<a name="L360"></a><tt class="py-lineno">360</tt>  <tt class="py-line">        <tt id="link-713" class="py-name"><a title="pyprocessing.primitives._smoothFixHackEnd" class="py-name" href="#" onclick="return doclink('link-713', '_smoothFixHackEnd', 'link-111');">_smoothFixHackEnd</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L361"></a><tt class="py-lineno">361</tt>  <tt class="py-line">        <tt id="link-714" class="py-name" targets="Variable pyprocessing.lights'.glDisable=pyprocessing.lights%27-module.html#glDisable"><a title="pyprocessing.lights'.glDisable" class="py-name" href="#" onclick="return doclink('link-714', 'glDisable', 'link-714');">glDisable</a></tt><tt class="py-op">(</tt><tt id="link-715" class="py-name"><a title="pyprocessing.lights'.GL_POLYGON_OFFSET_FILL" class="py-name" href="#" onclick="return doclink('link-715', 'GL_POLYGON_OFFSET_FILL', 'link-697');">GL_POLYGON_OFFSET_FILL</a></tt><tt class="py-op">)</tt> </tt>
<a name="L362"></a><tt class="py-lineno">362</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-716" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-716', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-717" class="py-name"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-717', 'strokeColor', 'link-121');">strokeColor</a></tt><tt class="py-op">!=</tt><tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L363"></a><tt class="py-lineno">363</tt>  <tt class="py-line">        <tt id="link-718" class="py-name"><a title="pyprocessing.lights'.glLineWidth" class="py-name" href="#" onclick="return doclink('link-718', 'glLineWidth', 'link-117');">glLineWidth</a></tt> <tt class="py-op">(</tt><tt id="link-719" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-719', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-720" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-720', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">)</tt> </tt>
<a name="L364"></a><tt class="py-lineno">364</tt>  <tt class="py-line">        <tt id="link-721" class="py-name"><a title="pyprocessing.lights'.glColor4f" class="py-name" href="#" onclick="return doclink('link-721', 'glColor4f', 'link-104');">glColor4f</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt id="link-722" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-722', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-723" class="py-name"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-723', 'strokeColor', 'link-121');">strokeColor</a></tt><tt class="py-op">)</tt> </tt>
<a name="L365"></a><tt class="py-lineno">365</tt>  <tt class="py-line">        <tt id="link-724" class="py-name"><a title="pyprocessing.lights'.glBegin" class="py-name" href="#" onclick="return doclink('link-724', 'glBegin', 'link-235');">glBegin</a></tt><tt class="py-op">(</tt><tt id="link-725" class="py-name"><a title="pyprocessing.lights'.GL_LINES" class="py-name" href="#" onclick="return doclink('link-725', 'GL_LINES', 'link-267');">GL_LINES</a></tt><tt class="py-op">)</tt> </tt>
<a name="L366"></a><tt class="py-lineno">366</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">i</tt> <tt class="py-keyword">in</tt> <tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">2</tt><tt class="py-op">,</tt><tt class="py-number">3</tt><tt class="py-op">,</tt><tt class="py-number">4</tt><tt class="py-op">,</tt><tt class="py-number">5</tt><tt class="py-op">,</tt><tt class="py-number">6</tt><tt class="py-op">,</tt><tt class="py-number">7</tt><tt class="py-op">,</tt> <tt class="py-number">2</tt><tt class="py-op">,</tt><tt class="py-number">6</tt><tt class="py-op">,</tt><tt class="py-number">3</tt><tt class="py-op">,</tt><tt class="py-number">7</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">5</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">4</tt><tt class="py-op">,</tt> <tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">3</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">2</tt><tt class="py-op">,</tt><tt class="py-number">4</tt><tt class="py-op">,</tt><tt class="py-number">6</tt><tt class="py-op">,</tt><tt class="py-number">5</tt><tt class="py-op">,</tt><tt class="py-number">7</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L367"></a><tt class="py-lineno">367</tt>  <tt class="py-line">            <tt id="link-726" class="py-name"><a title="pyprocessing.lights'.glVertex3f" class="py-name" href="#" onclick="return doclink('link-726', 'glVertex3f', 'link-596');">glVertex3f</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-name">v</tt><tt class="py-op">[</tt><tt class="py-name">i</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L368"></a><tt class="py-lineno">368</tt>  <tt class="py-line">        <tt id="link-727" class="py-name"><a title="pyprocessing.lights'.glEnd" class="py-name" href="#" onclick="return doclink('link-727', 'glEnd', 'link-253');">glEnd</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L369"></a><tt class="py-lineno">369</tt>  <tt class="py-line">    <tt id="link-728" class="py-name"><a title="pyprocessing.lights'.glPopAttrib" class="py-name" href="#" onclick="return doclink('link-728', 'glPopAttrib', 'link-128');">glPopAttrib</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L370"></a><tt class="py-lineno">370</tt>  <tt class="py-line"> </tt>
<a name="sphere"></a><div id="sphere-def"><a name="L371"></a><tt class="py-lineno">371</tt> <a class="py-toggle" href="#" id="sphere-toggle" onclick="return toggle('sphere');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.primitives-module.html#sphere">sphere</a><tt class="py-op">(</tt><tt class="py-param">radius</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="sphere-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="sphere-expanded"><a name="L372"></a><tt class="py-lineno">372</tt>  <tt class="py-line">    <tt class="py-docstring">"""Draws a sphere centered at the origin with the given radius."""</tt> </tt>
<a name="L373"></a><tt class="py-lineno">373</tt>  <tt class="py-line">    <tt id="link-729" class="py-name"><a title="pyprocessing.lights'.glPushAttrib" class="py-name" href="#" onclick="return doclink('link-729', 'glPushAttrib', 'link-112');">glPushAttrib</a></tt><tt class="py-op">(</tt><tt id="link-730" class="py-name"><a title="pyprocessing.lights'.GL_POLYGON_BIT" class="py-name" href="#" onclick="return doclink('link-730', 'GL_POLYGON_BIT', 'link-113');">GL_POLYGON_BIT</a></tt><tt class="py-op">)</tt> </tt>
<a name="L374"></a><tt class="py-lineno">374</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-731" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-731', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-732" class="py-name"><a title="pyprocessing.globs.shape.quadric" class="py-name" href="#" onclick="return doclink('link-732', 'quadric', 'link-35');">quadric</a></tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L375"></a><tt class="py-lineno">375</tt>  <tt class="py-line">        <tt id="link-733" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-733', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-734" class="py-name"><a title="pyprocessing.globs.shape.quadric" class="py-name" href="#" onclick="return doclink('link-734', 'quadric', 'link-35');">quadric</a></tt> <tt class="py-op">=</tt> <tt class="py-name">gl</tt><tt class="py-op">.</tt><tt id="link-735" class="py-name"><a title="pyprocessing.lights'.gluNewQuadric" class="py-name" href="#" onclick="return doclink('link-735', 'gluNewQuadric', 'link-38');">gluNewQuadric</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L376"></a><tt class="py-lineno">376</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-736" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-736', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-737" class="py-name"><a title="pyprocessing.globs.attrib.fillColor" class="py-name" href="#" onclick="return doclink('link-737', 'fillColor', 'link-103');">fillColor</a></tt><tt class="py-op">!=</tt><tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L377"></a><tt class="py-lineno">377</tt>  <tt class="py-line">        <tt id="link-738" class="py-name"><a title="pyprocessing.lights'.glPolygonMode" class="py-name" href="#" onclick="return doclink('link-738', 'glPolygonMode', 'link-114');">glPolygonMode</a></tt><tt class="py-op">(</tt><tt id="link-739" class="py-name"><a title="pyprocessing.lights'.GL_FRONT_AND_BACK" class="py-name" href="#" onclick="return doclink('link-739', 'GL_FRONT_AND_BACK', 'link-115');">GL_FRONT_AND_BACK</a></tt><tt class="py-op">,</tt><tt id="link-740" class="py-name" targets="Variable pyprocessing.lights'.GL_FILL=pyprocessing.lights%27-module.html#GL_FILL"><a title="pyprocessing.lights'.GL_FILL" class="py-name" href="#" onclick="return doclink('link-740', 'GL_FILL', 'link-740');">GL_FILL</a></tt><tt class="py-op">)</tt> </tt>
<a name="L378"></a><tt class="py-lineno">378</tt>  <tt class="py-line">        <tt id="link-741" class="py-name"><a title="pyprocessing.lights'.glEnable" class="py-name" href="#" onclick="return doclink('link-741', 'glEnable', 'link-696');">glEnable</a></tt><tt class="py-op">(</tt><tt id="link-742" class="py-name"><a title="pyprocessing.lights'.GL_POLYGON_OFFSET_FILL" class="py-name" href="#" onclick="return doclink('link-742', 'GL_POLYGON_OFFSET_FILL', 'link-697');">GL_POLYGON_OFFSET_FILL</a></tt><tt class="py-op">)</tt> </tt>
<a name="L379"></a><tt class="py-lineno">379</tt>  <tt class="py-line">        <tt id="link-743" class="py-name"><a title="pyprocessing.lights'.glPolygonOffset" class="py-name" href="#" onclick="return doclink('link-743', 'glPolygonOffset', 'link-698');">glPolygonOffset</a></tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L380"></a><tt class="py-lineno">380</tt>  <tt class="py-line">        <tt id="link-744" class="py-name"><a title="pyprocessing.lights'.glColor4f" class="py-name" href="#" onclick="return doclink('link-744', 'glColor4f', 'link-104');">glColor4f</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt id="link-745" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-745', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-746" class="py-name"><a title="pyprocessing.globs.attrib.fillColor" class="py-name" href="#" onclick="return doclink('link-746', 'fillColor', 'link-103');">fillColor</a></tt><tt class="py-op">)</tt> </tt>
<a name="L381"></a><tt class="py-lineno">381</tt>  <tt class="py-line">        <tt id="link-747" class="py-name"><a title="pyprocessing.primitives._smoothFixHackBegin" class="py-name" href="#" onclick="return doclink('link-747', '_smoothFixHackBegin', 'link-107');">_smoothFixHackBegin</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L382"></a><tt class="py-lineno">382</tt>  <tt class="py-line">        <tt id="link-748" class="py-name" targets="Variable pyprocessing.lights'.gluSphere=pyprocessing.lights%27-module.html#gluSphere"><a title="pyprocessing.lights'.gluSphere" class="py-name" href="#" onclick="return doclink('link-748', 'gluSphere', 'link-748');">gluSphere</a></tt><tt class="py-op">(</tt><tt id="link-749" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-749', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-750" class="py-name"><a title="pyprocessing.globs.shape.quadric" class="py-name" href="#" onclick="return doclink('link-750', 'quadric', 'link-35');">quadric</a></tt><tt class="py-op">,</tt> <tt class="py-name">radius</tt><tt class="py-op">,</tt> <tt id="link-751" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-751', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-752" class="py-name" targets="Variable pyprocessing.globs.shape.sphereDetail=pyprocessing.globs.shape-class.html#sphereDetail,Function pyprocessing.shapes.sphereDetail()=pyprocessing.shapes-module.html#sphereDetail"><a title="pyprocessing.globs.shape.sphereDetail
pyprocessing.shapes.sphereDetail" class="py-name" href="#" onclick="return doclink('link-752', 'sphereDetail', 'link-752');">sphereDetail</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt id="link-753" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-753', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-754" class="py-name"><a title="pyprocessing.globs.shape.sphereDetail
pyprocessing.shapes.sphereDetail" class="py-name" href="#" onclick="return doclink('link-754', 'sphereDetail', 'link-752');">sphereDetail</a></tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L383"></a><tt class="py-lineno">383</tt>  <tt class="py-line">        <tt id="link-755" class="py-name"><a title="pyprocessing.primitives._smoothFixHackEnd" class="py-name" href="#" onclick="return doclink('link-755', '_smoothFixHackEnd', 'link-111');">_smoothFixHackEnd</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L384"></a><tt class="py-lineno">384</tt>  <tt class="py-line">        <tt id="link-756" class="py-name"><a title="pyprocessing.lights'.glDisable" class="py-name" href="#" onclick="return doclink('link-756', 'glDisable', 'link-714');">glDisable</a></tt><tt class="py-op">(</tt><tt id="link-757" class="py-name"><a title="pyprocessing.lights'.GL_POLYGON_OFFSET_FILL" class="py-name" href="#" onclick="return doclink('link-757', 'GL_POLYGON_OFFSET_FILL', 'link-697');">GL_POLYGON_OFFSET_FILL</a></tt><tt class="py-op">)</tt> </tt>
<a name="L385"></a><tt class="py-lineno">385</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt id="link-758" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-758', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-759" class="py-name"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-759', 'strokeColor', 'link-121');">strokeColor</a></tt><tt class="py-op">!=</tt><tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L386"></a><tt class="py-lineno">386</tt>  <tt class="py-line">        <tt id="link-760" class="py-name"><a title="pyprocessing.lights'.glPolygonMode" class="py-name" href="#" onclick="return doclink('link-760', 'glPolygonMode', 'link-114');">glPolygonMode</a></tt><tt class="py-op">(</tt><tt id="link-761" class="py-name"><a title="pyprocessing.lights'.GL_FRONT_AND_BACK" class="py-name" href="#" onclick="return doclink('link-761', 'GL_FRONT_AND_BACK', 'link-115');">GL_FRONT_AND_BACK</a></tt><tt class="py-op">,</tt><tt id="link-762" class="py-name"><a title="pyprocessing.lights'.GL_LINE" class="py-name" href="#" onclick="return doclink('link-762', 'GL_LINE', 'link-116');">GL_LINE</a></tt><tt class="py-op">)</tt> </tt>
<a name="L387"></a><tt class="py-lineno">387</tt>  <tt class="py-line">        <tt id="link-763" class="py-name"><a title="pyprocessing.lights'.glLineWidth" class="py-name" href="#" onclick="return doclink('link-763', 'glLineWidth', 'link-117');">glLineWidth</a></tt> <tt class="py-op">(</tt><tt id="link-764" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-764', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-765" class="py-name"><a title="pyprocessing.attribs.strokeWeight
pyprocessing.globs.attrib.strokeWeight" class="py-name" href="#" onclick="return doclink('link-765', 'strokeWeight', 'link-119');">strokeWeight</a></tt><tt class="py-op">)</tt> </tt>
<a name="L388"></a><tt class="py-lineno">388</tt>  <tt class="py-line">        <tt id="link-766" class="py-name"><a title="pyprocessing.lights'.glColor4f" class="py-name" href="#" onclick="return doclink('link-766', 'glColor4f', 'link-104');">glColor4f</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt id="link-767" class="py-name"><a title="pyprocessing.globs.attrib" class="py-name" href="#" onclick="return doclink('link-767', 'attrib', 'link-11');">attrib</a></tt><tt class="py-op">.</tt><tt id="link-768" class="py-name"><a title="pyprocessing.globs.attrib.strokeColor" class="py-name" href="#" onclick="return doclink('link-768', 'strokeColor', 'link-121');">strokeColor</a></tt><tt class="py-op">)</tt> </tt>
<a name="L389"></a><tt class="py-lineno">389</tt>  <tt class="py-line">        <tt id="link-769" class="py-name"><a title="pyprocessing.lights'.gluSphere" class="py-name" href="#" onclick="return doclink('link-769', 'gluSphere', 'link-748');">gluSphere</a></tt><tt class="py-op">(</tt><tt id="link-770" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-770', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-771" class="py-name"><a title="pyprocessing.globs.shape.quadric" class="py-name" href="#" onclick="return doclink('link-771', 'quadric', 'link-35');">quadric</a></tt><tt class="py-op">,</tt> <tt class="py-name">radius</tt><tt class="py-op">,</tt> <tt id="link-772" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-772', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-773" class="py-name"><a title="pyprocessing.globs.shape.sphereDetail
pyprocessing.shapes.sphereDetail" class="py-name" href="#" onclick="return doclink('link-773', 'sphereDetail', 'link-752');">sphereDetail</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt id="link-774" class="py-name"><a title="pyprocessing.globs.shape" class="py-name" href="#" onclick="return doclink('link-774', 'shape', 'link-34');">shape</a></tt><tt class="py-op">.</tt><tt id="link-775" class="py-name"><a title="pyprocessing.globs.shape.sphereDetail
pyprocessing.shapes.sphereDetail" class="py-name" href="#" onclick="return doclink('link-775', 'sphereDetail', 'link-752');">sphereDetail</a></tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L390"></a><tt class="py-lineno">390</tt>  <tt class="py-line">    <tt id="link-776" class="py-name"><a title="pyprocessing.lights'.glPopAttrib" class="py-name" href="#" onclick="return doclink('link-776', 'glPopAttrib', 'link-128');">glPopAttrib</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L391"></a><tt class="py-lineno">391</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pyprocessing-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Mon Jun 11 22:06:48 2012
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
